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.001191/0.001191, allocations: 96.27 kB / 17.3 MB, free: 6.34 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.001797/0.001797, allocations: 177 kB / 18.2 MB, free: 5.527 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.539/1.539, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004635/0.0004636, allocations: 12 kB / 281.4 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.09966, allocations: 47.58 MB / 329 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2859/0.3856, allocations: 68.46 MB / 397.4 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03412/0.4198, allocations: 13.98 MB / 411.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01856/0.4384, allocations: 306.1 kB / 411.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002565/0.441, allocations: 0.5149 MB / 412.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008497/0.4495, allocations: 2.134 MB / 414.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00309/0.4526, allocations: 0.8517 MB / 415.2 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01257/0.4652, allocations: 8.524 MB / 423.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01195/0.4772, allocations: 7.442 MB / 431.2 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004255/0.4815, allocations: 1.585 MB / 432.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004882/0.4865, allocations: 2.674 MB / 435.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00119/0.4877, allocations: 188 kB / 435.6 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003385/0.4911, allocations: 1.136 MB / 436.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003058/0.4942, allocations: 2.297 MB / 439 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004975/0.4992, allocations: 2.618 MB / 441.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01347/0.5127, allocations: 8.893 MB / 450.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.5127, allocations: 4 kB / 450.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.5127, allocations: 0 / 450.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003827/0.5131, allocations: 0 / 450.6 MB, free: 6.43 MB / 350.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.01464/0.5278, allocations: 5.196 MB / 455.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.963e-05/0.5279, allocations: 8.031 kB / 455.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01473/0.5426, allocations: 2.669 MB / 458.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01333/0.556, allocations: 3.98 MB / 462.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005205/0.5566, allocations: 310.8 kB / 462.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002829/0.5595, allocations: 444.7 kB / 463.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02728/0.5868, allocations: 12.27 MB / 475.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001986/0.587, allocations: 59.44 kB / 475.5 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005814/0.5876, allocations: 193.6 kB / 475.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00372/0.5913, allocations: 2.206 MB / 477.9 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0223/0.6137, allocations: 10.55 MB / 488.4 MB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06555/0.6793, allocations: 47.59 MB / 0.5235 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/0.6913, allocations: 4.6 MB / 0.5279 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004018/0.6953, allocations: 2.64 MB / 0.5305 GB, free: 7.797 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2203/0.9157, allocations: 10.43 MB / 0.5407 GB, free: 163 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.666e-05/0.9158, allocations: 58.45 kB / 0.5408 GB, free: 163 MB / 446.1 MB Notification: Performance of pre-optimization done (n=192): time 6.702e-06/0.9158, allocations: 0 / 0.5408 GB, free: 163 MB / 446.1 MB Notification: Performance of matching and sorting (n=218): time 0.05582/0.9716, allocations: 21.01 MB / 0.5613 GB, free: 156.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/0.9717, allocations: 211.7 kB / 0.5615 GB, free: 156 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005662/0.9774, allocations: 4.823 MB / 0.5662 GB, free: 154.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004434/0.9779, allocations: 57.64 kB / 0.5663 GB, free: 154.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001723/0.9796, allocations: 3.726 MB / 0.5699 GB, free: 151.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007856/0.9804, allocations: 0.8366 MB / 0.5707 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006255/0.981, allocations: 0.5871 MB / 0.5713 GB, free: 150.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.5e-05/0.9811, allocations: 301.1 kB / 0.5716 GB, free: 149.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003135/0.9842, allocations: 2.59 MB / 0.5741 GB, free: 147.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005589/0.9898, allocations: 6.559 MB / 0.5805 GB, free: 138.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008533/0.9984, allocations: 9.82 MB / 0.5901 GB, free: 127.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.316e-05/0.9985, allocations: 40 kB / 0.5901 GB, free: 127.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.01644/1.015, allocations: 10.27 MB / 0.6002 GB, free: 116.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.975e-05/1.015, allocations: 71.94 kB / 0.6002 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001279/1.015, allocations: 136 kB / 0.6004 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004057/1.019, allocations: 1.619 MB / 0.6019 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004703/1.024, allocations: 1.567 MB / 0.6035 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.034, allocations: 9.546 MB / 0.6128 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00496/1.039, allocations: 387.4 kB / 0.6132 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000825/1.04, allocations: 424.5 kB / 0.6136 GB, free: 102.8 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.003654/1.044, allocations: 2.561 MB / 0.6161 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000792/1.044, allocations: 426.5 kB / 0.6165 GB, free: 99.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007762/1.052, allocations: 4.637 MB / 0.621 GB, free: 95.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-05/1.052, allocations: 30.38 kB / 0.621 GB, free: 95.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/1.052, allocations: 8.75 kB / 0.621 GB, free: 95.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.592e-05/1.052, allocations: 11.97 kB / 0.6211 GB, free: 95.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01623/1.069, allocations: 10.5 MB / 0.6313 GB, free: 84.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/1.069, allocations: 0 / 0.6313 GB, free: 84.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/1.07, allocations: 351.5 kB / 0.6316 GB, free: 84.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003606/1.074, allocations: 1.363 MB / 0.633 GB, free: 82.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001941/1.074, allocations: 36 kB / 0.633 GB, free: 82.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009139/1.083, allocations: 8.751 MB / 0.6416 GB, free: 73.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.083, allocations: 4 kB / 0.6416 GB, free: 73.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.094, allocations: 7.576 MB / 0.649 GB, free: 66.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001738/1.096, allocations: 0.7884 MB / 0.6497 GB, free: 65.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005335/1.096, allocations: 36 kB / 0.6498 GB, free: 65.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/1.098, allocations: 132 kB / 0.6499 GB, free: 65.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/1.098, allocations: 137.7 kB / 0.65 GB, free: 65.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/1.098, allocations: 53.64 kB / 0.6501 GB, free: 65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004115/1.102, allocations: 3.045 MB / 0.653 GB, free: 61.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.8e-07/1.102, allocations: 4 kB / 0.6531 GB, free: 61.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005453/1.108, allocations: 1.26 MB / 0.6543 GB, free: 60.7 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.0004407/1.108, allocations: 173.1 kB / 0.6544 GB, free: 60.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008942/1.117, allocations: 6.39 MB / 0.6607 GB, free: 54.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.493e-06/1.117, allocations: 3.938 kB / 0.6607 GB, free: 54.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00295/1.12, allocations: 2.212 MB / 0.6629 GB, free: 51.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003819/1.124, allocations: 0.5178 MB / 0.6634 GB, free: 51.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01884/1.143, allocations: 14.47 MB / 0.6775 GB, free: 36.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004279/1.147, allocations: 4.007 MB / 0.6814 GB, free: 32.85 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004787/1.152, allocations: 2.091 MB / 0.6834 GB, free: 30.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007956/1.153, allocations: 283.4 kB / 0.6837 GB, free: 30.47 MB / 446.1 MB Notification: Performance of SimCode: time 1.302e-06/1.153, allocations: 0 / 0.6837 GB, free: 30.47 MB / 446.1 MB Notification: Performance of Templates: time 0.2668/1.42, allocations: 44.89 MB / 0.7276 GB, free: 139.4 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches