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.001061/0.001061, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.0008695/0.0008695, allocations: 141.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.9049/0.9049, allocations: 173.4 MB / 201.1 MB, free: 9.34 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.803e-06/1.803e-06, allocations: 3.938 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.967e-05/2.147e-05, allocations: 10.25 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01177/0.01179, allocations: 13.26 MB / 281.2 MB, free: 9.125 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006496/0.01828, allocations: 4.489 MB / 285.7 MB, free: 4.621 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.01932, allocations: 111.4 kB / 285.8 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1105/0.1298, allocations: 4.528 MB / 290.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004934/0.1348, allocations: 2.314 MB / 292.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.1364, allocations: 1.038 MB / 293.7 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005886/0.1423, allocations: 6.749 MB / 300.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004257/0.1466, allocations: 4.702 MB / 305.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003919/0.1505, allocations: 4.259 MB / 309.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002687/0.1532, allocations: 3.139 MB / 312.6 MB, free: 8.793 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008928/0.1541, allocations: 489.5 kB / 313.1 MB, free: 8.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.1555, allocations: 1.313 MB / 314.4 MB, free: 8.285 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.1567, allocations: 2.755 MB / 317.1 MB, free: 5.621 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001339/0.158, allocations: 1.745 MB / 318.9 MB, free: 3.953 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003848/0.1618, allocations: 5.951 MB / 324.8 MB, free: 14.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1618, allocations: 0 / 324.8 MB, free: 14.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.24e-06/0.1619, allocations: 0 / 324.8 MB, free: 14.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.515e-05/0.1619, allocations: 4 kB / 324.8 MB, free: 14.35 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.006783/0.1687, allocations: 6.735 MB / 331.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.1688, allocations: 12.92 kB / 331.6 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006197/0.175, allocations: 3.171 MB / 334.7 MB, free: 4.512 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/0.1783, allocations: 3.24 MB / 338 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.1785, allocations: 300.9 kB / 338.3 MB, free: 1.168 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004643/0.1789, allocations: 432.9 kB / 338.7 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007633/0.1866, allocations: 7.073 MB / 345.8 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-05/0.1867, allocations: 48.47 kB / 345.8 MB, free: 8.875 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003034/0.187, allocations: 193.7 kB / 346 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001583/0.1885, allocations: 1.986 MB / 348 MB, free: 6.766 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006406/0.1949, allocations: 3.594 MB / 351.6 MB, free: 3.359 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03051/0.2255, allocations: 48.56 MB / 400.1 MB, free: 1.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004216/0.2297, allocations: 1.955 MB / 402.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007218/0.2304, allocations: 0.5962 MB / 402.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005068/0.2355, allocations: 4.629 MB / 407.3 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.2355, allocations: 49.02 kB / 407.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=142): time 2.745e-06/0.2355, allocations: 0 / 407.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=158): time 0.01482/0.2503, allocations: 10.05 MB / 417.4 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.2504, allocations: 200.9 kB / 417.6 MB, free: 328 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003457/0.2538, allocations: 4.177 MB / 421.8 MB, free: 12.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.263e-05/0.2539, allocations: 45.7 kB / 421.8 MB, free: 12.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001762/0.2557, allocations: 4.019 MB / 425.9 MB, free: 8.047 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003912/0.2561, allocations: 0.675 MB / 426.5 MB, free: 7.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/0.2572, allocations: 1.423 MB / 428 MB, free: 5.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.801e-05/0.2573, allocations: 479.2 kB / 428.4 MB, free: 5.473 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009148/0.2582, allocations: 0.6373 MB / 429.1 MB, free: 4.832 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1169/0.3751, allocations: 6.678 MB / 435.7 MB, free: 96.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005524/0.3806, allocations: 7.999 MB / 443.7 MB, free: 88.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001393/0.3808, allocations: 40.5 kB / 443.8 MB, free: 88.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.008667/0.3894, allocations: 5.619 MB / 449.4 MB, free: 87.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.894e-05/0.3895, allocations: 66.11 kB / 449.5 MB, free: 87.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.3897, allocations: 147.1 kB / 449.6 MB, free: 87.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009212/0.3906, allocations: 453.2 kB / 450 MB, free: 87.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002509/0.3931, allocations: 1.513 MB / 451.6 MB, free: 87.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002467/0.3956, allocations: 4.926 MB / 456.5 MB, free: 83.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002604/0.3982, allocations: 426.8 kB / 456.9 MB, free: 83.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003387/0.3985, allocations: 397.8 kB / 457.3 MB, free: 83.66 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.001259/0.3998, allocations: 0.7015 MB / 458 MB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004025/0.4002, allocations: 438.1 kB / 458.4 MB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.4014, allocations: 1.087 MB / 459.5 MB, free: 83.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.4015, allocations: 17.7 kB / 459.5 MB, free: 83.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.4015, allocations: 6.812 kB / 459.5 MB, free: 83.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.4015, allocations: 6.469 kB / 459.5 MB, free: 83.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005795/0.4073, allocations: 5.269 MB / 464.8 MB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.4073, allocations: 7.688 kB / 464.8 MB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006233/0.4079, allocations: 288.9 kB / 465.1 MB, free: 82.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005679/0.4085, allocations: 255.7 kB / 465.3 MB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.072e-05/0.4085, allocations: 37.03 kB / 465.4 MB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/0.4102, allocations: 4.013 MB / 469.4 MB, free: 78.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4102, allocations: 7.906 kB / 469.4 MB, free: 78.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.4122, allocations: 2.336 MB / 471.7 MB, free: 77.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.4126, allocations: 394.8 kB / 472.1 MB, free: 77.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/0.4129, allocations: 34.84 kB / 472.2 MB, free: 77.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007249/0.4136, allocations: 126 kB / 472.3 MB, free: 77.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.4138, allocations: 129 kB / 472.4 MB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.798e-05/0.4138, allocations: 47.78 kB / 472.5 MB, free: 77.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001715/0.4155, allocations: 1.827 MB / 474.3 MB, free: 77.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4155, allocations: 0 / 474.3 MB, free: 77.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003245/0.4188, allocations: 1.17 MB / 475.5 MB, free: 77.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.0003034/0.4191, allocations: 194.2 kB / 475.6 MB, free: 77.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003492/0.4226, allocations: 3.198 MB / 478.8 MB, free: 75.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4226, allocations: 4 kB / 478.8 MB, free: 75.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006354/0.4232, allocations: 0.8789 MB / 479.7 MB, free: 74.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.4246, allocations: 0.4895 MB / 480.2 MB, free: 74.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009021/0.4337, allocations: 8.889 MB / 489.1 MB, free: 65.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.4347, allocations: 1.498 MB / 490.6 MB, free: 64.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002097/0.4368, allocations: 1.698 MB / 492.3 MB, free: 63.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003575/0.4371, allocations: 250.4 kB / 492.5 MB, free: 63.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.803e-06/0.4371, allocations: 8 kB / 492.5 MB, free: 63.5 MB / 378.7 MB Notification: Performance of Templates: time 0.04014/0.4773, allocations: 30.28 MB / 0.5106 GB, free: 34.07 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.8344407021068037]