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.001285/0.001285, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009168/0.0009168, allocations: 140.3 kB / 24.89 MB, free: 9.207 MB / 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.8874/0.8874, allocations: 173.3 MB / 201.5 MB, free: 9.16 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.462e-06/1.462e-06, allocations: 3.938 kB / 268.5 MB, free: 6.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.016e-05/2.162e-05, allocations: 2.312 kB / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009322/0.009343, allocations: 12.84 MB / 281.3 MB, free: 9.258 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006078/0.01542, allocations: 4.635 MB / 285.9 MB, free: 4.609 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007459/0.01617, allocations: 111.4 kB / 286.1 MB, free: 4.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1021/0.1183, allocations: 4.51 MB / 290.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004509/0.1228, allocations: 2.341 MB / 292.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.1242, allocations: 1.033 MB / 293.9 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005671/0.1299, allocations: 6.731 MB / 300.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003951/0.1338, allocations: 4.801 MB / 305.5 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00378/0.1376, allocations: 4.234 MB / 309.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/0.1402, allocations: 3.01 MB / 312.7 MB, free: 9.199 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006511/0.1408, allocations: 487.9 kB / 313.2 MB, free: 9.199 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.1421, allocations: 1.324 MB / 314.5 MB, free: 8.145 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001053/0.1431, allocations: 2.744 MB / 317.3 MB, free: 5.492 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001103/0.1442, allocations: 1.747 MB / 319 MB, free: 3.824 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003195/0.1474, allocations: 5.947 MB / 325 MB, free: 14.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1474, allocations: 3.984 kB / 325 MB, free: 14.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1474, allocations: 0 / 325 MB, free: 14.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.757e-05/0.1475, allocations: 0 / 325 MB, free: 14.23 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.006759/0.1542, allocations: 5.777 MB / 330.7 MB, free: 8.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1543, allocations: 8.922 kB / 330.7 MB, free: 8.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004509/0.1588, allocations: 1.431 MB / 332.2 MB, free: 7.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003696/0.1625, allocations: 2.663 MB / 334.8 MB, free: 4.953 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.1627, allocations: 303.3 kB / 335.1 MB, free: 4.695 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006698/0.1633, allocations: 428.9 kB / 335.5 MB, free: 4.32 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007593/0.1709, allocations: 5.837 MB / 341.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/0.171, allocations: 57.67 kB / 341.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004094/0.1714, allocations: 191.3 kB / 341.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002239/0.1737, allocations: 1.823 MB / 343.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005613/0.1793, allocations: 2.902 MB / 346.4 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02887/0.2082, allocations: 34.93 MB / 381.3 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004971/0.2131, allocations: 1.711 MB / 383 MB, free: 5.059 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000662/0.2138, allocations: 412.2 kB / 383.4 MB, free: 4.652 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005124/0.2189, allocations: 4.111 MB / 387.5 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.2189, allocations: 50.84 kB / 387.6 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of pre-optimization done (n=142): time 3.467e-06/0.219, allocations: 0 / 387.6 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of matching and sorting (n=158): time 0.01116/0.2301, allocations: 5.361 MB / 392.9 MB, free: 11.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.2302, allocations: 192.9 kB / 393.1 MB, free: 11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002839/0.233, allocations: 3.724 MB / 396.8 MB, free: 7.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.65e-05/0.2331, allocations: 49.7 kB / 396.9 MB, free: 7.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001318/0.2344, allocations: 3.531 MB / 400.4 MB, free: 3.699 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003329/0.2347, allocations: 0.663 MB / 401.1 MB, free: 3.031 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001206/0.2359, allocations: 1.243 MB / 402.3 MB, free: 1.777 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.748e-05/0.236, allocations: 305.1 kB / 402.6 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.2371, allocations: 0.7668 MB / 403.4 MB, free: 0.707 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002808/0.2399, allocations: 4.71 MB / 408.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00395/0.2438, allocations: 6.031 MB / 414.1 MB, free: 2.004 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.746e-05/0.2439, allocations: 40 kB / 414.2 MB, free: 1.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.004376/0.2482, allocations: 4.428 MB / 418.6 MB, free: 13.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.382e-05/0.2483, allocations: 75.94 kB / 418.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.858e-05/0.2484, allocations: 140 kB / 418.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006356/0.249, allocations: 401.3 kB / 419.2 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/0.2515, allocations: 1.466 MB / 420.7 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002124/0.2536, allocations: 3.551 MB / 424.2 MB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.2555, allocations: 287.7 kB / 424.5 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002724/0.2558, allocations: 344 kB / 424.8 MB, free: 7.086 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 653 * 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 (807): * Single equations (assignments): 802 * 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,11,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001041/0.2568, allocations: 0.6611 MB / 425.5 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000287/0.2571, allocations: 235.7 kB / 425.7 MB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.2581, allocations: 0.8681 MB / 426.6 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.2582, allocations: 20 kB / 426.6 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.2582, allocations: 0 / 426.6 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.2582, allocations: 12.08 kB / 426.6 MB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004869/0.263, allocations: 4.261 MB / 430.9 MB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.263, allocations: 4 kB / 430.9 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005692/0.2636, allocations: 251.7 kB / 431.1 MB, free: 0.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006767/0.2643, allocations: 411.3 kB / 431.5 MB, free: 216 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-05/0.2643, allocations: 39.92 kB / 431.6 MB, free: 176 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1003/0.3646, allocations: 2.76 MB / 434.3 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.3646, allocations: 9.688 kB / 434.3 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.3668, allocations: 1.765 MB / 436.1 MB, free: 109.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005555/0.3674, allocations: 367.1 kB / 436.5 MB, free: 109.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003195/0.3677, allocations: 30.47 kB / 436.5 MB, free: 109.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000675/0.3684, allocations: 34.8 kB / 436.5 MB, free: 109.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.3685, allocations: 114.2 kB / 436.6 MB, free: 109.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-05/0.3686, allocations: 46.19 kB / 436.7 MB, free: 109.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001655/0.3703, allocations: 1.39 MB / 438.1 MB, free: 109.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3703, allocations: 4.469 kB / 438.1 MB, free: 109.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003416/0.3737, allocations: 1.164 MB / 439.2 MB, free: 109.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (130): * Single equations (assignments): 125 * 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,9,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.0003006/0.374, allocations: 178.4 kB / 439.4 MB, free: 109.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002858/0.3768, allocations: 2.715 MB / 442.1 MB, free: 109.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001686/0.377, allocations: 103.7 kB / 442.2 MB, free: 109.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005898/0.3776, allocations: 0.646 MB / 442.9 MB, free: 109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/0.3795, allocations: 0.7516 MB / 443.6 MB, free: 109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007776/0.3873, allocations: 8.741 MB / 452.4 MB, free: 105.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009558/0.3882, allocations: 1.483 MB / 453.9 MB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001056/0.3893, allocations: 0.5288 MB / 454.4 MB, free: 105 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006922/0.39, allocations: 0.604 MB / 455 MB, free: 104.9 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.39, allocations: 0 / 455 MB, free: 104.9 MB / 378.7 MB Notification: Performance of Templates: time 0.04186/0.4318, allocations: 32.15 MB / 487.1 MB, free: 78.87 MB / 378.7 MB " [Timeout remaining time 660] 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: 3.8061311319470406]