Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9018/0.9018, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 3.938 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.987e-05, allocations: 10.25 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01032/0.01034, allocations: 13.25 MB / 281.2 MB, free: 9.121 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00754/0.01788, allocations: 4.489 MB / 285.7 MB, free: 4.617 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001456/0.01933, allocations: 107.5 kB / 285.8 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1347/0.154, allocations: 4.532 MB / 290.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005886/0.1599, allocations: 2.316 MB / 292.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001852/0.1617, allocations: 1.035 MB / 293.7 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007572/0.1693, allocations: 6.741 MB / 300.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005176/0.1745, allocations: 4.706 MB / 305.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003864/0.1784, allocations: 3.294 MB / 308.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003258/0.1816, allocations: 3.154 MB / 311.6 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007011/0.1823, allocations: 486.6 kB / 312.1 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.1841, allocations: 1.321 MB / 313.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001468/0.1856, allocations: 2.748 MB / 316.2 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001528/0.1871, allocations: 1.745 MB / 317.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004832/0.1919, allocations: 5.937 MB / 323.8 MB, free: 15.17 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1919, allocations: 4 kB / 323.8 MB, free: 15.17 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1919, allocations: 0 / 323.8 MB, free: 15.17 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001306/0.1921, allocations: 0 / 323.8 MB, free: 15.17 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.008985/0.201, allocations: 6.692 MB / 330.5 MB, free: 8.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/0.2011, allocations: 12.92 kB / 330.6 MB, free: 8.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006637/0.2077, allocations: 3.234 MB / 333.8 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004386/0.2121, allocations: 3.382 MB / 337.2 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.2123, allocations: 301.2 kB / 337.5 MB, free: 1.816 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005777/0.2129, allocations: 434.6 kB / 337.9 MB, free: 1.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008286/0.2211, allocations: 7.08 MB / 345 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.429e-05/0.2212, allocations: 48.62 kB / 345 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003201/0.2216, allocations: 189.6 kB / 345.2 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001979/0.2235, allocations: 2.085 MB / 347.3 MB, free: 7.301 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006921/0.2305, allocations: 3.808 MB / 351.1 MB, free: 3.691 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03378/0.2642, allocations: 48.35 MB / 399.4 MB, free: 2.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005009/0.2692, allocations: 2.298 MB / 401.7 MB, free: 200 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.2705, allocations: 0.7727 MB / 402.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007114/0.2776, allocations: 6.265 MB / 408.8 MB, free: 9.156 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.2776, allocations: 53.77 kB / 408.8 MB, free: 9.098 MB / 362.7 MB Notification: Performance of pre-optimization done (n=171): time 3.918e-06/0.2776, allocations: 0 / 408.8 MB, free: 9.098 MB / 362.7 MB Notification: Performance of matching and sorting (n=197): time 0.02638/0.304, allocations: 14.3 MB / 423.1 MB, free: 10.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.831e-05/0.3041, allocations: 205.2 kB / 423.3 MB, free: 10.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003887/0.308, allocations: 4.049 MB / 427.4 MB, free: 6.504 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.643e-05/0.3081, allocations: 49.7 kB / 427.4 MB, free: 6.449 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001869/0.3099, allocations: 3.912 MB / 431.3 MB, free: 2.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005381/0.3105, allocations: 0.8186 MB / 432.2 MB, free: 1.742 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001269/0.3117, allocations: 1.432 MB / 433.6 MB, free: 304 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.1409/0.4526, allocations: 478.6 kB / 434.1 MB, free: 116.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002581/0.4552, allocations: 0.7746 MB / 434.8 MB, free: 116.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004001/0.4592, allocations: 6.535 MB / 441.4 MB, free: 108.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006065/0.4653, allocations: 8.001 MB / 449.4 MB, free: 101.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-05/0.4654, allocations: 38.97 kB / 449.4 MB, free: 101.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01046/0.4758, allocations: 6.479 MB / 455.9 MB, free: 100.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.498e-05/0.4759, allocations: 63.06 kB / 455.9 MB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/0.476, allocations: 135.8 kB / 456.1 MB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002622/0.4786, allocations: 1.126 MB / 457.2 MB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/0.4811, allocations: 1.488 MB / 458.7 MB, free: 100 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005271/0.4864, allocations: 6.496 MB / 465.2 MB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002944/0.4893, allocations: 422.3 kB / 465.6 MB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003638/0.4897, allocations: 390.2 kB / 466 MB, free: 96.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (796): * Single equations (assignments): 791 * 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.001473/0.4912, allocations: 0.6974 MB / 466.7 MB, free: 95.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004886/0.4917, allocations: 448.4 kB / 467.1 MB, free: 95.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003268/0.4949, allocations: 2.209 MB / 469.3 MB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/0.495, allocations: 22.44 kB / 469.3 MB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.495, allocations: 7.75 kB / 469.4 MB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.495, allocations: 10.08 kB / 469.4 MB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008086/0.5031, allocations: 6.472 MB / 475.8 MB, free: 91.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.5031, allocations: 0 / 475.8 MB, free: 91.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00071/0.5038, allocations: 300 kB / 476.1 MB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002471/0.5063, allocations: 0.883 MB / 477 MB, free: 91.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000293/0.5066, allocations: 32 kB / 477 MB, free: 91.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005122/0.5117, allocations: 5.796 MB / 482.8 MB, free: 85.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5117, allocations: 4 kB / 482.8 MB, free: 85.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004746/0.5164, allocations: 3.288 MB / 486.1 MB, free: 82.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.5174, allocations: 392.9 kB / 486.5 MB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004335/0.5179, allocations: 32 kB / 486.5 MB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.519, allocations: 167.7 kB / 486.7 MB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003053/0.5193, allocations: 125.1 kB / 486.8 MB, free: 81.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-05/0.5194, allocations: 55.98 kB / 486.9 MB, free: 81.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002487/0.5219, allocations: 1.777 MB / 488.7 MB, free: 80.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5219, allocations: 0 / 488.7 MB, free: 80.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004838/0.5267, allocations: 1.371 MB / 490 MB, free: 78.77 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.0004633/0.5272, allocations: 194.1 kB / 490.2 MB, free: 78.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005843/0.533, allocations: 3.663 MB / 493.9 MB, free: 74.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.533, allocations: 8.188 kB / 493.9 MB, free: 74.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.5345, allocations: 1.161 MB / 495.1 MB, free: 73.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002437/0.5369, allocations: 0.4918 MB / 495.6 MB, free: 73.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01276/0.5497, allocations: 9.177 MB / 0.4929 GB, free: 63.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.5509, allocations: 1.523 MB / 0.4944 GB, free: 62.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002532/0.5534, allocations: 1.697 MB / 0.496 GB, free: 60.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006117/0.554, allocations: 260.5 kB / 0.4963 GB, free: 60.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.585e-06/0.554, allocations: 0 / 0.4963 GB, free: 60.48 MB / 378.7 MB Notification: Performance of Templates: time 0.05789/0.6119, allocations: 40.58 MB / 0.5359 GB, free: 20.48 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 4.141107204835862]