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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001604/0.001604, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001994/0.001994, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2696, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01478/0.2844, allocations: 13.44 MB / 422.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009288/0.2937, allocations: 4.544 MB / 427.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002331/0.2961, allocations: 91.69 kB / 427.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007378/0.3035, allocations: 4.19 MB / 431.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006293/0.3098, allocations: 2.124 MB / 433.6 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002414/0.3123, allocations: 0.932 MB / 434.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009063/0.3213, allocations: 6.124 MB / 440.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006744/0.3281, allocations: 5.193 MB / 445.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003686/0.3319, allocations: 2.122 MB / 448 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004339/0.3362, allocations: 2.796 MB / 450.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001263/0.3375, allocations: 472 kB / 451.3 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.3404, allocations: 1.338 MB / 452.6 MB, free: 6.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002591/0.343, allocations: 2.517 MB / 455.1 MB, free: 3.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00339/0.3464, allocations: 2.836 MB / 457.9 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01048/0.3569, allocations: 9.025 MB / 467 MB, free: 7.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.046e-06/0.357, allocations: 0 / 467 MB, free: 7.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.357, allocations: 0 / 467 MB, free: 7.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000328/0.3573, allocations: 0 / 467 MB, free: 7.613 MB / 382.1 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.0142/0.3715, allocations: 6.083 MB / 473.1 MB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.3716, allocations: 8.031 kB / 473.1 MB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01234/0.3839, allocations: 2.576 MB / 475.6 MB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01096/0.3949, allocations: 3.804 MB / 479.4 MB, free: 11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/0.3952, allocations: 304.1 kB / 479.7 MB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.3967, allocations: 427.8 kB / 480.2 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02093/0.4176, allocations: 11.54 MB / 491.7 MB, free: 14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001584/0.4178, allocations: 55.48 kB / 491.8 MB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004892/0.4183, allocations: 187.9 kB / 491.9 MB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003346/0.4217, allocations: 2.026 MB / 494 MB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01946/0.4412, allocations: 9.936 MB / 0.4921 GB, free: 1.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06235/0.5036, allocations: 45.34 MB / 0.5364 GB, free: 3.051 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2406/0.7442, allocations: 4.36 MB / 0.5406 GB, free: 122.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003112/0.7473, allocations: 2.471 MB / 0.543 GB, free: 121.6 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01301/0.7604, allocations: 9.847 MB / 0.5527 GB, free: 117 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.7605, allocations: 59.69 kB / 0.5527 GB, free: 116.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.338e-06/0.7605, allocations: 0 / 0.5527 GB, free: 116.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04846/0.8089, allocations: 19.91 MB / 0.5722 GB, free: 102.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.561e-05/0.809, allocations: 201.2 kB / 0.5724 GB, free: 102.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004906/0.814, allocations: 4.685 MB / 0.5769 GB, free: 97.56 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000292/0.8143, allocations: 53.7 kB / 0.577 GB, free: 97.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001365/0.8156, allocations: 3.555 MB / 0.5805 GB, free: 93.95 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005349/0.8162, allocations: 0.7703 MB / 0.5812 GB, free: 93.19 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001289/0.8175, allocations: 1.336 MB / 0.5825 GB, free: 91.84 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.105e-05/0.8175, allocations: 305.1 kB / 0.5828 GB, free: 91.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002587/0.8201, allocations: 2.406 MB / 0.5851 GB, free: 89.13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003682/0.8238, allocations: 6.252 MB / 0.5913 GB, free: 81.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007596/0.8314, allocations: 9.301 MB / 0.6003 GB, free: 69.83 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.543e-05/0.8315, allocations: 36 kB / 0.6004 GB, free: 69.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01463/0.8462, allocations: 9.76 MB / 0.6099 GB, free: 60.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.186e-05/0.8463, allocations: 64.06 kB / 0.61 GB, free: 59.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.8464, allocations: 136 kB / 0.6101 GB, free: 59.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003874/0.8503, allocations: 1.613 MB / 0.6117 GB, free: 58.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00463/0.8549, allocations: 1.482 MB / 0.6131 GB, free: 56.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.8652, allocations: 10.26 MB / 0.6231 GB, free: 46.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004711/0.8699, allocations: 359.4 kB / 0.6235 GB, free: 45.83 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00067/0.8706, allocations: 396 kB / 0.6239 GB, free: 45.44 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (793): * Single equations (assignments): 788 * 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.003124/0.8738, allocations: 2.454 MB / 0.6263 GB, free: 42.97 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006259/0.8744, allocations: 406.8 kB / 0.6266 GB, free: 42.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006741/0.8811, allocations: 4.236 MB / 0.6308 GB, free: 38.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.382e-05/0.8812, allocations: 24 kB / 0.6308 GB, free: 38.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.8812, allocations: 8 kB / 0.6308 GB, free: 38.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.333e-05/0.8812, allocations: 7.969 kB / 0.6308 GB, free: 38.28 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01574/0.897, allocations: 9.66 MB / 0.6402 GB, free: 28.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/0.897, allocations: 7.984 kB / 0.6403 GB, free: 28.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001376/0.8984, allocations: 303.6 kB / 0.6405 GB, free: 28.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003651/0.9021, allocations: 1.354 MB / 0.6419 GB, free: 26.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002095/0.9023, allocations: 31.28 kB / 0.6419 GB, free: 26.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0092/0.9115, allocations: 9.39 MB / 0.6511 GB, free: 17.22 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.9116, allocations: 0 / 0.6511 GB, free: 17.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009614/0.9212, allocations: 6.978 MB / 0.6579 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.9224, allocations: 459.7 kB / 0.6583 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000407/0.9228, allocations: 31.52 kB / 0.6583 GB, free: 9.715 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001453/0.9243, allocations: 111.8 kB / 0.6585 GB, free: 9.605 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003455/0.9247, allocations: 118.7 kB / 0.6586 GB, free: 9.488 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.9248, allocations: 51.98 kB / 0.6586 GB, free: 9.438 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003581/0.9284, allocations: 2.96 MB / 0.6615 GB, free: 6.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.142e-06/0.9284, allocations: 4 kB / 0.6615 GB, free: 6.477 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004656/0.9331, allocations: 1.189 MB / 0.6627 GB, free: 5.293 MB / 462.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 (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.000408/0.9335, allocations: 161.2 kB / 0.6628 GB, free: 5.133 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007915/0.9414, allocations: 5.98 MB / 0.6687 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/0.9414, allocations: 0 / 0.6687 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003067/0.9445, allocations: 2.007 MB / 0.6706 GB, free: 13.12 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003005/0.9475, allocations: 0.5293 MB / 0.6711 GB, free: 12.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01724/0.9648, allocations: 11.04 MB / 0.6819 GB, free: 1.52 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003996/0.9688, allocations: 3.815 MB / 0.6857 GB, free: 13.67 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004146/0.973, allocations: 1.984 MB / 0.6876 GB, free: 11.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007107/0.9737, allocations: 267.4 kB / 0.6878 GB, free: 11.42 MB / 494.1 MB Notification: Performance of SimCode: time 8.32e-07/0.9737, allocations: 0 / 0.6878 GB, free: 11.42 MB / 494.1 MB Notification: Performance of Templates: time 0.07994/1.054, allocations: 41.78 MB / 0.7286 GB, free: 1.91 MB / 0.5137 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches