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.0009771/0.0009771, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001303/0.001303, allocations: 161.1 kB / 24.99 MB, free: 8.793 MB / 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 0.9522/0.9522, allocations: 177 MB / 205.2 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] 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.072e-06/1.072e-06, allocations: 0 / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.114e-05/1.221e-05, allocations: 2.312 kB / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009711/0.009723, allocations: 13.08 MB / 286.1 MB, free: 4.621 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00674/0.01646, allocations: 4.477 MB / 290.5 MB, free: 132 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.01759, allocations: 115.4 kB / 290.7 MB, free: 16 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1113/0.1289, allocations: 4.48 MB / 295.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004038/0.1329, allocations: 2.273 MB / 297.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.1344, allocations: 1.032 MB / 298.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005522/0.14, allocations: 6.872 MB / 305.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003528/0.1435, allocations: 4.677 MB / 310 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003021/0.1465, allocations: 3.252 MB / 313.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002235/0.1488, allocations: 3.138 MB / 316.4 MB, free: 4.277 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004766/0.1492, allocations: 487.9 kB / 316.9 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.1504, allocations: 1.296 MB / 318.1 MB, free: 2.562 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.1515, allocations: 2.703 MB / 320.9 MB, free: 15.94 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00146/0.1529, allocations: 1.72 MB / 322.6 MB, free: 14.3 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004358/0.1573, allocations: 5.828 MB / 328.4 MB, free: 8.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1573, allocations: 0 / 328.4 MB, free: 8.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1573, allocations: 0 / 328.4 MB, free: 8.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001339/0.1574, allocations: 0 / 328.4 MB, free: 8.82 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.006816/0.1643, allocations: 6.629 MB / 335 MB, free: 2.227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.1643, allocations: 15.98 kB / 335 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006795/0.1711, allocations: 3.227 MB / 338.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003621/0.1747, allocations: 3.372 MB / 341.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.1748, allocations: 294.8 kB / 341.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004736/0.1753, allocations: 432.9 kB / 342.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007917/0.1832, allocations: 7.007 MB / 349.4 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.274e-05/0.1833, allocations: 51.38 kB / 349.4 MB, free: 3.309 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00032/0.1836, allocations: 191.6 kB / 349.6 MB, free: 3.156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002134/0.1858, allocations: 2.027 MB / 351.6 MB, free: 1.152 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006442/0.1922, allocations: 3.757 MB / 355.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0298/0.222, allocations: 48.06 MB / 403.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00521/0.2272, allocations: 2.314 MB / 405.7 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009836/0.2282, allocations: 0.7699 MB / 406.5 MB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00694/0.2352, allocations: 6.24 MB / 412.8 MB, free: 2.805 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.2352, allocations: 54.39 kB / 412.8 MB, free: 2.742 MB / 362.7 MB Notification: Performance of pre-optimization done (n=171): time 2.875e-06/0.2352, allocations: 0 / 412.8 MB, free: 2.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=197): time 0.02667/0.2619, allocations: 14.23 MB / 427 MB, free: 4.473 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.474e-05/0.2619, allocations: 205.2 kB / 427.2 MB, free: 4.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00362/0.2656, allocations: 4.04 MB / 431.3 MB, free: 172 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.2657, allocations: 49.7 kB / 431.3 MB, free: 116 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1088/0.3745, allocations: 3.867 MB / 435.2 MB, free: 119.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008831/0.3754, allocations: 0.8168 MB / 436 MB, free: 119.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00147/0.3768, allocations: 1.429 MB / 437.4 MB, free: 119.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.303e-05/0.3769, allocations: 477.5 kB / 437.9 MB, free: 118.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.3784, allocations: 0.7722 MB / 438.7 MB, free: 118.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003031/0.3814, allocations: 6.507 MB / 445.2 MB, free: 111.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005319/0.3867, allocations: 7.966 MB / 453.2 MB, free: 103.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.467e-05/0.3868, allocations: 38.97 kB / 453.2 MB, free: 103.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.00871/0.3955, allocations: 6.453 MB / 459.6 MB, free: 101 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.71e-05/0.3956, allocations: 67.61 kB / 459.7 MB, free: 101 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-05/0.3956, allocations: 134.2 kB / 459.8 MB, free: 101 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002449/0.3981, allocations: 1.127 MB / 461 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002314/0.4004, allocations: 1.48 MB / 462.5 MB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005027/0.4054, allocations: 6.504 MB / 469 MB, free: 95.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002604/0.408, allocations: 418.7 kB / 469.4 MB, free: 95.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002944/0.4083, allocations: 384.8 kB / 469.7 MB, free: 95.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (793): * Single equations (assignments): 788 * 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,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001215/0.4096, allocations: 0.697 MB / 470.4 MB, free: 94.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004532/0.41, allocations: 441.4 kB / 470.9 MB, free: 94.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003248/0.4133, allocations: 2.218 MB / 473.1 MB, free: 92.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.4133, allocations: 20 kB / 473.1 MB, free: 92.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.4133, allocations: 8 kB / 473.1 MB, free: 92.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.4133, allocations: 8.391 kB / 473.1 MB, free: 92.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007753/0.421, allocations: 6.438 MB / 479.6 MB, free: 87.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.4211, allocations: 0 / 479.6 MB, free: 87.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007432/0.4218, allocations: 295.6 kB / 479.8 MB, free: 86.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002126/0.4239, allocations: 0.8908 MB / 480.7 MB, free: 85.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.956e-05/0.424, allocations: 31.98 kB / 480.8 MB, free: 85.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004365/0.4284, allocations: 5.777 MB / 486.5 MB, free: 79.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.4284, allocations: 7.875 kB / 486.6 MB, free: 79.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004289/0.4327, allocations: 3.276 MB / 489.8 MB, free: 76.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005862/0.4333, allocations: 394.6 kB / 490.2 MB, free: 76.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002683/0.4335, allocations: 31.98 kB / 490.2 MB, free: 76.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000904/0.4344, allocations: 175.7 kB / 490.4 MB, free: 75.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/0.4347, allocations: 125 kB / 490.5 MB, free: 75.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.894e-05/0.4348, allocations: 52 kB / 490.6 MB, free: 75.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001727/0.4365, allocations: 1.773 MB / 492.4 MB, free: 73.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4365, allocations: 0 / 492.4 MB, free: 73.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003545/0.44, allocations: 1.338 MB / 493.7 MB, free: 72.62 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 (147): * Single equations (assignments): 142 * 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,27,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.0003354/0.4404, allocations: 188.7 kB / 493.9 MB, free: 72.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004359/0.4447, allocations: 3.645 MB / 497.5 MB, free: 68.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4447, allocations: 4 kB / 497.5 MB, free: 68.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.4459, allocations: 1.165 MB / 498.7 MB, free: 67.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.4474, allocations: 0.4892 MB / 499.2 MB, free: 67.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.4577, allocations: 9.078 MB / 0.4964 GB, free: 57.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.4587, allocations: 1.51 MB / 0.4978 GB, free: 56.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002227/0.4609, allocations: 1.692 MB / 0.4995 GB, free: 54.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004766/0.4614, allocations: 260.4 kB / 0.4997 GB, free: 54.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.843e-06/0.4614, allocations: 0 / 0.4997 GB, free: 54.48 MB / 378.7 MB Notification: Performance of Templates: time 0.0487/0.5101, allocations: 40.31 MB / 0.5391 GB, free: 14.75 MB / 378.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.97177632083185]