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.0009855/0.0009855, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001014/0.001014, allocations: 156.5 kB / 24.55 MB, free: 20 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 0.929/0.929, allocations: 177 MB / 204.8 MB, free: 5.602 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.543e-06/1.543e-06, allocations: 3.938 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.155e-05/2.309e-05, allocations: 2.312 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01047/0.01049, allocations: 13.12 MB / 286 MB, free: 4.289 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1206/0.1311, allocations: 4.48 MB / 290.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002127/0.1332, allocations: 109.6 kB / 290.6 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005309/0.1385, allocations: 4.508 MB / 295.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004517/0.1431, allocations: 2.274 MB / 297.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.1446, allocations: 1.031 MB / 298.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006396/0.151, allocations: 6.878 MB / 305.3 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004161/0.1551, allocations: 4.674 MB / 310 MB, free: 8.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00444/0.1596, allocations: 4.225 MB / 314.2 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003181/0.1627, allocations: 3.115 MB / 317.3 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.1638, allocations: 484 kB / 317.8 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.1655, allocations: 1.305 MB / 319.1 MB, free: 1.652 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001785/0.1673, allocations: 2.703 MB / 321.8 MB, free: 15.03 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002292/0.1696, allocations: 1.721 MB / 323.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006543/0.1761, allocations: 5.849 MB / 329.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1761, allocations: 0 / 329.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1761, allocations: 0 / 329.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001611/0.1763, allocations: 0 / 329.4 MB, free: 7.887 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.008452/0.1848, allocations: 6.674 MB / 336.1 MB, free: 1.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.1848, allocations: 15.98 kB / 336.1 MB, free: 1.234 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006764/0.1916, allocations: 3.149 MB / 339.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004319/0.1959, allocations: 3.226 MB / 342.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001471/0.196, allocations: 305.3 kB / 342.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000867/0.1969, allocations: 421.2 kB / 343.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01073/0.2076, allocations: 7.003 MB / 350.2 MB, free: 2.516 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.2078, allocations: 60.58 kB / 350.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004749/0.2082, allocations: 187.2 kB / 350.4 MB, free: 2.309 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001826/0.2101, allocations: 1.914 MB / 352.3 MB, free: 404 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008117/0.2182, allocations: 3.564 MB / 355.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03488/0.2531, allocations: 48.2 MB / 404.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004762/0.2578, allocations: 1.942 MB / 406 MB, free: 9.352 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008348/0.2587, allocations: 0.5862 MB / 406.6 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006374/0.265, allocations: 4.618 MB / 411.2 MB, free: 4.148 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.2651, allocations: 54.33 kB / 411.3 MB, free: 4.086 MB / 362.7 MB Notification: Performance of pre-optimization done (n=142): time 2.875e-06/0.2651, allocations: 4 kB / 411.3 MB, free: 4.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=158): time 0.0172/0.2823, allocations: 9.992 MB / 421.3 MB, free: 10.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.2823, allocations: 196.9 kB / 421.5 MB, free: 9.785 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004556/0.2869, allocations: 4.171 MB / 425.6 MB, free: 5.566 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.525e-05/0.287, allocations: 45.7 kB / 425.7 MB, free: 5.516 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002097/0.2891, allocations: 3.967 MB / 429.7 MB, free: 1.562 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007514/0.2898, allocations: 0.6803 MB / 430.3 MB, free: 0.8906 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1138/0.4037, allocations: 1.41 MB / 431.7 MB, free: 113 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.449e-05/0.4037, allocations: 478.6 kB / 432.2 MB, free: 112.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.405, allocations: 0.6324 MB / 432.8 MB, free: 112.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/0.4079, allocations: 6.656 MB / 439.5 MB, free: 104.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004806/0.4127, allocations: 7.961 MB / 447.5 MB, free: 96.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/0.4128, allocations: 40.31 kB / 447.5 MB, free: 96.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.008511/0.4213, allocations: 5.595 MB / 453.1 MB, free: 95.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.958e-05/0.4214, allocations: 65.66 kB / 453.2 MB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/0.4216, allocations: 140.8 kB / 453.3 MB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.4226, allocations: 461.2 kB / 453.7 MB, free: 95.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002905/0.4255, allocations: 1.502 MB / 455.2 MB, free: 95.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002896/0.4284, allocations: 4.929 MB / 460.2 MB, free: 91.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003699/0.4321, allocations: 418.8 kB / 460.6 MB, free: 91.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006935/0.4328, allocations: 395.8 kB / 461 MB, free: 91.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * 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 (804): * Single equations (assignments): 799 * 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.001649/0.4345, allocations: 0.7072 MB / 461.7 MB, free: 91.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005128/0.435, allocations: 425.5 kB / 462.1 MB, free: 91.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001339/0.4363, allocations: 1.091 MB / 463.2 MB, free: 91.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/0.4363, allocations: 22.45 kB / 463.2 MB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.4363, allocations: 3.625 kB / 463.2 MB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4363, allocations: 7.875 kB / 463.2 MB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006478/0.4428, allocations: 5.233 MB / 468.5 MB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.4428, allocations: 3.75 kB / 468.5 MB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006817/0.4435, allocations: 289.7 kB / 468.7 MB, free: 89.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006079/0.4441, allocations: 259.8 kB / 469 MB, free: 89.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-05/0.4442, allocations: 35.89 kB / 469 MB, free: 89.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/0.4459, allocations: 3.999 MB / 473 MB, free: 85.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4459, allocations: 11.94 kB / 473 MB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/0.4481, allocations: 2.338 MB / 475.4 MB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005206/0.4487, allocations: 389.5 kB / 475.8 MB, free: 83.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002831/0.4489, allocations: 35.55 kB / 475.8 MB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007514/0.4497, allocations: 135.1 kB / 475.9 MB, free: 83.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.4499, allocations: 117.9 kB / 476 MB, free: 83.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-05/0.4499, allocations: 50.58 kB / 476.1 MB, free: 83.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00176/0.4517, allocations: 1.819 MB / 477.9 MB, free: 81.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.4517, allocations: 0 / 477.9 MB, free: 81.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003559/0.4552, allocations: 1.133 MB / 479 MB, free: 80.83 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.0003355/0.4556, allocations: 193.6 kB / 479.2 MB, free: 80.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003918/0.4595, allocations: 3.193 MB / 482.4 MB, free: 77.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.4595, allocations: 4 kB / 482.4 MB, free: 77.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006989/0.4602, allocations: 0.866 MB / 483.3 MB, free: 76.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.4618, allocations: 0.4929 MB / 483.8 MB, free: 76.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008946/0.4707, allocations: 8.768 MB / 492.6 MB, free: 68.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.4718, allocations: 1.475 MB / 494 MB, free: 67.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002159/0.4739, allocations: 1.691 MB / 495.7 MB, free: 65.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003817/0.4743, allocations: 256.5 kB / 496 MB, free: 65.42 MB / 378.7 MB Notification: Performance of SimCode: time 1.743e-06/0.4743, allocations: 0 / 496 MB, free: 65.42 MB / 378.7 MB Notification: Performance of Templates: time 0.03993/0.5142, allocations: 30.02 MB / 0.5137 GB, free: 36.05 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.9742405829019845]