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.0009996/0.0009996, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0009698/0.0009698, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.99/0.99, allocations: 173.3 MB / 201.5 MB, free: 9.324 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.814e-06/1.814e-06, allocations: 0 / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.696e-05/2.877e-05, allocations: 2.312 kB / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01026/0.01028, allocations: 13.21 MB / 281.3 MB, free: 9.445 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007209/0.01749, allocations: 4.481 MB / 285.8 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.01923, allocations: 107.5 kB / 285.9 MB, free: 4.844 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004653/0.02388, allocations: 4.521 MB / 290.4 MB, free: 316 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1103/0.1342, allocations: 2.305 MB / 292.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.136, allocations: 1.033 MB / 293.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007369/0.1433, allocations: 6.745 MB / 300.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006651/0.15, allocations: 4.709 MB / 305.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004127/0.1541, allocations: 3.284 MB / 308.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003141/0.1573, allocations: 3.163 MB / 311.6 MB, free: 9.559 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008614/0.1581, allocations: 484.9 kB / 312.1 MB, free: 9.559 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001537/0.1597, allocations: 1.322 MB / 313.4 MB, free: 9.203 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001286/0.1609, allocations: 2.749 MB / 316.2 MB, free: 6.715 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001715/0.1627, allocations: 1.749 MB / 317.9 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00431/0.167, allocations: 5.932 MB / 323.9 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.167, allocations: 0 / 323.9 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.167, allocations: 0 / 323.9 MB, free: 15.46 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001731/0.1671, allocations: 0 / 323.9 MB, free: 15.46 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.008474/0.1756, allocations: 6.692 MB / 330.5 MB, free: 8.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.1757, allocations: 12.92 kB / 330.6 MB, free: 8.801 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007014/0.1827, allocations: 3.239 MB / 333.8 MB, free: 5.598 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004409/0.1871, allocations: 3.392 MB / 337.2 MB, free: 2.359 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.1872, allocations: 300.1 kB / 337.5 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005331/0.1878, allocations: 432.1 kB / 337.9 MB, free: 1.723 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008982/0.1968, allocations: 7.072 MB / 345 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001338/0.1969, allocations: 57.36 kB / 345 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003663/0.1973, allocations: 184.4 kB / 345.2 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002243/0.1995, allocations: 2.088 MB / 347.3 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00802/0.2075, allocations: 3.793 MB / 351.1 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03424/0.2418, allocations: 48.37 MB / 399.5 MB, free: 2.816 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005484/0.2472, allocations: 2.295 MB / 401.8 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.2485, allocations: 0.7755 MB / 402.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009662/0.2581, allocations: 6.263 MB / 408.8 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.2582, allocations: 50.39 kB / 408.8 MB, free: 9.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=171): time 4.429e-06/0.2582, allocations: 0 / 408.8 MB, free: 9.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=197): time 0.03808/0.2963, allocations: 14.29 MB / 423.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/0.2963, allocations: 197.2 kB / 423.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005339/0.3017, allocations: 4.056 MB / 427.4 MB, free: 6.805 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002063/0.3019, allocations: 53.7 kB / 427.4 MB, free: 6.746 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002587/0.3045, allocations: 3.915 MB / 431.4 MB, free: 2.844 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008297/0.3053, allocations: 0.815 MB / 432.2 MB, free: 2.039 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001689/0.307, allocations: 1.436 MB / 433.6 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.3071, allocations: 476.8 kB / 434.1 MB, free: 124 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.123/0.4301, allocations: 0.7694 MB / 434.8 MB, free: 121.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003355/0.4335, allocations: 6.539 MB / 441.4 MB, free: 114 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00554/0.439, allocations: 7.997 MB / 449.4 MB, free: 106.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001018/0.4391, allocations: 38.34 kB / 449.4 MB, free: 106.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.009863/0.449, allocations: 6.467 MB / 455.9 MB, free: 105 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.542e-05/0.449, allocations: 64.28 kB / 455.9 MB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000114/0.4492, allocations: 134.4 kB / 456.1 MB, free: 105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/0.4517, allocations: 1.134 MB / 457.2 MB, free: 105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002423/0.4541, allocations: 1.491 MB / 458.7 MB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00509/0.4592, allocations: 6.498 MB / 465.2 MB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003023/0.4623, allocations: 425.2 kB / 465.6 MB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004259/0.4627, allocations: 390.9 kB / 466 MB, free: 100.8 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.001412/0.4641, allocations: 0.7001 MB / 466.7 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000517/0.4646, allocations: 449.1 kB / 467.1 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003248/0.4679, allocations: 2.214 MB / 469.3 MB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.128e-05/0.4679, allocations: 23.5 kB / 469.4 MB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.4679, allocations: 8.5 kB / 469.4 MB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.4679, allocations: 7.219 kB / 469.4 MB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00815/0.4761, allocations: 6.48 MB / 475.9 MB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.4761, allocations: 0 / 475.9 MB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007672/0.4768, allocations: 294 kB / 476.2 MB, free: 94.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0022/0.479, allocations: 0.8842 MB / 477 MB, free: 94.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/0.4791, allocations: 31.98 kB / 477.1 MB, free: 94.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004303/0.4834, allocations: 5.791 MB / 482.9 MB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4834, allocations: 0 / 482.9 MB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004283/0.4877, allocations: 3.285 MB / 486.1 MB, free: 85.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006643/0.4884, allocations: 393.2 kB / 486.5 MB, free: 85.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/0.4887, allocations: 35.94 kB / 486.6 MB, free: 85.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009353/0.4896, allocations: 171.6 kB / 486.7 MB, free: 84.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002479/0.4899, allocations: 133 kB / 486.9 MB, free: 84.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.669e-05/0.49, allocations: 44 kB / 486.9 MB, free: 84.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001907/0.4919, allocations: 1.785 MB / 488.7 MB, free: 82.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4919, allocations: 0 / 488.7 MB, free: 82.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003946/0.4958, allocations: 1.358 MB / 490 MB, free: 81.54 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.0003932/0.4962, allocations: 200.8 kB / 490.2 MB, free: 81.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004844/0.5011, allocations: 3.663 MB / 493.9 MB, free: 77.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5011, allocations: 0 / 493.9 MB, free: 77.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.5023, allocations: 1.166 MB / 495.1 MB, free: 76.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.5041, allocations: 0.5047 MB / 495.6 MB, free: 75.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.5145, allocations: 9.16 MB / 0.4929 GB, free: 66.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.5156, allocations: 1.523 MB / 0.4944 GB, free: 65.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002393/0.518, allocations: 1.7 MB / 0.4961 GB, free: 63.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005047/0.5185, allocations: 260.4 kB / 0.4963 GB, free: 63.23 MB / 378.7 MB Notification: Performance of SimCode: time 1.693e-06/0.5185, allocations: 0 / 0.4963 GB, free: 63.23 MB / 378.7 MB Notification: Performance of Templates: time 0.04904/0.5675, allocations: 40.59 MB / 0.5359 GB, free: 23.22 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.164428709074855]