Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001766/0.001766, allocations: 96.25 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001736/0.001736, allocations: 156.9 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.925e-05/3.095e-05, allocations: 2.312 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01647/0.0165, allocations: 11.75 MB / 283.9 MB, free: 6.008 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.02689, allocations: 4.371 MB / 288.3 MB, free: 1.625 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.02883, allocations: 111.4 kB / 288.4 MB, free: 1.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1231/0.1519, allocations: 4.344 MB / 292.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005957/0.1579, allocations: 2.268 MB / 295 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002124/0.16, allocations: 1.03 MB / 296.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008403/0.1684, allocations: 6.868 MB / 302.9 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005/0.1734, allocations: 4.668 MB / 307.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004651/0.1781, allocations: 3.226 MB / 310.8 MB, free: 8.148 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003795/0.1819, allocations: 3.041 MB / 313.9 MB, free: 5.953 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000818/0.1827, allocations: 484 kB / 314.3 MB, free: 5.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.1847, allocations: 1.312 MB / 315.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00171/0.1864, allocations: 2.69 MB / 318.3 MB, free: 1.629 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002124/0.1885, allocations: 1.712 MB / 320.1 MB, free: 15.99 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.2018, allocations: 9.239 MB / 329.3 MB, free: 7.094 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/0.2018, allocations: 0 / 329.3 MB, free: 7.094 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2018, allocations: 4 kB / 329.3 MB, free: 7.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003184/0.2021, allocations: 0 / 329.3 MB, free: 7.09 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01721/0.2193, allocations: 6.246 MB / 335.5 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.2194, allocations: 15.98 kB / 335.6 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01408/0.2335, allocations: 3.306 MB / 338.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009708/0.2432, allocations: 3.746 MB / 342.6 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003256/0.2435, allocations: 301.5 kB / 342.9 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001507/0.245, allocations: 429.6 kB / 343.3 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02398/0.269, allocations: 11.69 MB / 355 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001636/0.2691, allocations: 61.86 kB / 355.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005809/0.2697, allocations: 189.9 kB / 355.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004059/0.2738, allocations: 2.026 MB / 357.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02207/0.2959, allocations: 9.997 MB / 367.3 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0635/0.3594, allocations: 42.19 MB / 409.5 MB, free: 6.109 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/0.3716, allocations: 3.814 MB / 413.3 MB, free: 2.258 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003837/0.3754, allocations: 2.343 MB / 415.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01822/0.3936, allocations: 9.243 MB / 424.9 MB, free: 6.676 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.269e-05/0.3937, allocations: 59.5 kB / 424.9 MB, free: 6.609 MB / 378.7 MB Notification: Performance of pre-optimization done (n=172): time 5.3e-06/0.3937, allocations: 0 / 424.9 MB, free: 6.609 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.2066/0.6003, allocations: 28.3 MB / 453.2 MB, free: 115.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.6004, allocations: 199.6 kB / 453.4 MB, free: 115.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008178/0.6085, allocations: 4.584 MB / 458 MB, free: 112.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003744/0.6089, allocations: 50.33 kB / 458.1 MB, free: 112.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002225/0.6111, allocations: 3.667 MB / 461.7 MB, free: 109.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00105/0.6122, allocations: 0.7926 MB / 462.5 MB, free: 108.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002622/0.6148, allocations: 1.322 MB / 463.8 MB, free: 107.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.682e-05/0.6148, allocations: 301.1 kB / 464.1 MB, free: 106.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004922/0.6198, allocations: 2.64 MB / 466.8 MB, free: 104.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004105/0.6239, allocations: 6.495 MB / 473.3 MB, free: 95.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007621/0.6315, allocations: 9.715 MB / 483 MB, free: 84.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001209/0.6316, allocations: 36 kB / 483 MB, free: 84.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.01709/0.6487, allocations: 11.21 MB / 494.2 MB, free: 72.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/0.6488, allocations: 64 kB / 494.3 MB, free: 72.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001655/0.649, allocations: 132 kB / 494.4 MB, free: 72.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007392/0.6564, allocations: 2.734 MB / 497.2 MB, free: 69.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004446/0.6608, allocations: 1.571 MB / 498.7 MB, free: 68.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01358/0.6744, allocations: 12.5 MB / 0.4992 GB, free: 55.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005075/0.6795, allocations: 451.3 kB / 0.4997 GB, free: 55.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008732/0.6804, allocations: 388 kB / 0.5 GB, free: 54.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (786): * Single equations (assignments): 781 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,33,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003437/0.6838, allocations: 2.45 MB / 0.5024 GB, free: 52.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009872/0.6848, allocations: 449.4 kB / 0.5029 GB, free: 51.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009493/0.6943, allocations: 5.394 MB / 0.5081 GB, free: 46.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.862e-05/0.6943, allocations: 20 kB / 0.5082 GB, free: 46.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/0.6943, allocations: 8 kB / 0.5082 GB, free: 46.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.6943, allocations: 11.97 kB / 0.5082 GB, free: 46.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01793/0.7123, allocations: 10.44 MB / 0.5184 GB, free: 36.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-05/0.7123, allocations: 192 / 0.5184 GB, free: 36.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.714, allocations: 407.4 kB / 0.5188 GB, free: 35.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007154/0.7212, allocations: 2.483 MB / 0.5212 GB, free: 33.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000272/0.7215, allocations: 32 kB / 0.5212 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01335/0.7348, allocations: 11.66 MB / 0.5326 GB, free: 21.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/0.7348, allocations: 11.81 kB / 0.5326 GB, free: 21.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/0.7476, allocations: 8.563 MB / 0.541 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.7488, allocations: 397.3 kB / 0.5414 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009089/0.7497, allocations: 32 kB / 0.5414 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002373/0.752, allocations: 212.2 kB / 0.5416 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000466/0.7525, allocations: 129.1 kB / 0.5417 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001612/0.7527, allocations: 55.98 kB / 0.5418 GB, free: 11.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003889/0.7565, allocations: 2.725 MB / 0.5444 GB, free: 9.172 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.7565, allocations: 0 / 0.5444 GB, free: 9.172 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006157/0.7627, allocations: 1.371 MB / 0.5458 GB, free: 7.801 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 141 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,29,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005985/0.7633, allocations: 194.4 kB / 0.546 GB, free: 7.602 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009225/0.7725, allocations: 6.343 MB / 0.5521 GB, free: 1.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.7725, allocations: 0 / 0.5521 GB, free: 1.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004223/0.7768, allocations: 2.271 MB / 0.5544 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004092/0.7808, allocations: 0.5022 MB / 0.5549 GB, free: 14.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1387/0.9195, allocations: 11.5 MB / 0.5661 GB, free: 118.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005071/0.9246, allocations: 3.303 MB / 0.5693 GB, free: 118.6 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004106/0.9287, allocations: 1.936 MB / 0.5712 GB, free: 118.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008264/0.9295, allocations: 264 kB / 0.5715 GB, free: 118.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.362e-06/0.9295, allocations: 0 / 0.5715 GB, free: 118.6 MB / 394.7 MB Notification: Performance of Templates: time 0.07087/1, allocations: 44.85 MB / 0.6153 GB, free: 87.27 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.80829332198482]