Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 107.2 kB / 18.34 MB, free: 4.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 192.1 kB / 19.28 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 59.91 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09088/0.09283, allocations: 46.61 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0149/0.1078, allocations: 14.24 MB / 342.9 MB, free: 5.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009553/0.1174, allocations: 4.646 MB / 347.6 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002/0.1195, allocations: 91.75 kB / 347.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00713/0.1266, allocations: 4.237 MB / 351.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005598/0.1322, allocations: 2.268 MB / 354.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.1344, allocations: 0.9243 MB / 355.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007999/0.1425, allocations: 5.898 MB / 361 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006233/0.1487, allocations: 5.294 MB / 366.3 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003735/0.1525, allocations: 2.204 MB / 368.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004383/0.1569, allocations: 2.936 MB / 371.4 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001134/0.1581, allocations: 492 kB / 371.9 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002676/0.1608, allocations: 1.366 MB / 373.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002532/0.1633, allocations: 2.638 MB / 375.9 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003732/0.1671, allocations: 3.003 MB / 378.9 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.171/0.3381, allocations: 9.563 MB / 388.5 MB, free: 21.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3382, allocations: 0 / 388.5 MB, free: 21.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3382, allocations: 0 / 388.5 MB, free: 21.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003051/0.3385, allocations: 1.25 kB / 388.5 MB, free: 21.38 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01573/0.3542, allocations: 6.337 MB / 394.8 MB, free: 18.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.3543, allocations: 9.281 kB / 394.8 MB, free: 18.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0115/0.3658, allocations: 2.613 MB / 397.5 MB, free: 18.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009826/0.3756, allocations: 4.04 MB / 401.5 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002327/0.3759, allocations: 319.7 kB / 401.8 MB, free: 17.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001671/0.3776, allocations: 447.8 kB / 402.2 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0196/0.3972, allocations: 12.24 MB / 414.5 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001689/0.3974, allocations: 56.45 kB / 414.5 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000544/0.398, allocations: 194.1 kB / 414.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002994/0.401, allocations: 2.206 MB / 416.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01821/0.4192, allocations: 10.54 MB / 427.5 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06283/0.4821, allocations: 47.34 MB / 474.8 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.4932, allocations: 4.6 MB / 479.4 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003401/0.4966, allocations: 2.648 MB / 482.1 MB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0159/0.5125, allocations: 10.43 MB / 492.5 MB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/0.5126, allocations: 59.34 kB / 492.6 MB, free: 14.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=192): time 4.719e-06/0.5126, allocations: 0 / 492.6 MB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.0542/0.5668, allocations: 20.98 MB / 0.5015 GB, free: 9.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.567, allocations: 201.2 kB / 0.5017 GB, free: 8.906 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006661/0.5736, allocations: 4.825 MB / 0.5064 GB, free: 4.082 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003205/0.574, allocations: 53.7 kB / 0.5064 GB, free: 4.023 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002497/0.5765, allocations: 3.728 MB / 0.5101 GB, free: 320 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009494/0.5775, allocations: 0.8294 MB / 0.5109 GB, free: 15.49 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0019/0.5794, allocations: 1.396 MB / 0.5123 GB, free: 14.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.5795, allocations: 309.1 kB / 0.5126 GB, free: 13.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003724/0.5832, allocations: 2.578 MB / 0.5151 GB, free: 11.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006455/0.5897, allocations: 6.56 MB / 0.5215 GB, free: 2.746 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/0.6021, allocations: 9.799 MB / 0.5311 GB, free: 7.574 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001024/0.6022, allocations: 40 kB / 0.5311 GB, free: 7.535 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.1807/0.7829, allocations: 10.25 MB / 0.5411 GB, free: 156 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001197/0.783, allocations: 64.09 kB / 0.5412 GB, free: 156 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001884/0.7832, allocations: 147 kB / 0.5413 GB, free: 156 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0043/0.7875, allocations: 1.615 MB / 0.5429 GB, free: 156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004929/0.7925, allocations: 1.563 MB / 0.5444 GB, free: 156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/0.803, allocations: 10.27 MB / 0.5544 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005457/0.8085, allocations: 382.1 kB / 0.5548 GB, free: 151.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008319/0.8093, allocations: 403 kB / 0.5552 GB, free: 151.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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 (834): * Single equations (assignments): 829 * 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.00409/0.8134, allocations: 2.574 MB / 0.5577 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007661/0.8142, allocations: 424.6 kB / 0.5581 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007405/0.8216, allocations: 4.626 MB / 0.5626 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.129e-05/0.8217, allocations: 21.44 kB / 0.5626 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/0.8217, allocations: 7.312 kB / 0.5626 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.503e-05/0.8217, allocations: 15.09 kB / 0.5627 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01912/0.8409, allocations: 10.43 MB / 0.5728 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/0.8409, allocations: 0 / 0.5728 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/0.8425, allocations: 345.2 kB / 0.5732 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003476/0.846, allocations: 1.361 MB / 0.5745 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/0.8461, allocations: 35.98 kB / 0.5745 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008939/0.8551, allocations: 9.393 MB / 0.5837 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.8551, allocations: 0 / 0.5837 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009488/0.8646, allocations: 7.551 MB / 0.5911 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002168/0.8668, allocations: 0.7859 MB / 0.5919 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005802/0.8674, allocations: 32 kB / 0.5919 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/0.8691, allocations: 128 kB / 0.592 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004292/0.8696, allocations: 145.3 kB / 0.5921 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/0.8697, allocations: 57.31 kB / 0.5922 GB, free: 123.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005352/0.8751, allocations: 3.041 MB / 0.5952 GB, free: 120.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8751, allocations: 0 / 0.5952 GB, free: 120.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006446/0.8816, allocations: 1.273 MB / 0.5964 GB, free: 118.8 MB / 446.1 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 (169): * Single equations (assignments): 164 * 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.0004813/0.8821, allocations: 163.6 kB / 0.5966 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008351/0.8904, allocations: 6.391 MB / 0.6028 GB, free: 112.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.8905, allocations: 0 / 0.6028 GB, free: 112.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002697/0.8932, allocations: 2.204 MB / 0.605 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003169/0.8963, allocations: 0.5522 MB / 0.6055 GB, free: 109.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/0.9135, allocations: 11.71 MB / 0.6169 GB, free: 97.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003766/0.9173, allocations: 3.999 MB / 0.6208 GB, free: 93.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004248/0.9215, allocations: 2.087 MB / 0.6229 GB, free: 91.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009274/0.9225, allocations: 291.4 kB / 0.6232 GB, free: 91.46 MB / 446.1 MB Notification: Performance of SimCode: time 2.235e-06/0.9225, allocations: 3.938 kB / 0.6232 GB, free: 91.46 MB / 446.1 MB Notification: Performance of Templates: time 0.06757/0.9901, allocations: 41.69 MB / 0.6639 GB, free: 49.89 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches