Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00117/0.00117, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001226/0.001226, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.11 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 76.19 kB / 417.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1622, allocations: 62.44 MB / 480 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01636/0.1786, allocations: 13.48 MB / 493.5 MB, free: 7.727 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.1897, allocations: 4.551 MB / 498.1 MB, free: 3.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002899/0.1926, allocations: 87.75 kB / 498.1 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008607/0.2013, allocations: 4.178 MB / 0.4905 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006807/0.2081, allocations: 2.143 MB / 0.4926 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00264/0.2108, allocations: 0.9243 MB / 0.4935 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01047/0.2213, allocations: 6.124 MB / 0.4995 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009154/0.2305, allocations: 5.211 MB / 0.5046 GB, free: 404 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2802/0.5107, allocations: 2.107 MB / 0.5067 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006156/0.5169, allocations: 2.8 MB / 0.5094 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002526/0.5194, allocations: 471.4 kB / 0.5099 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004551/0.524, allocations: 1.336 MB / 0.5112 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004583/0.5286, allocations: 2.488 MB / 0.5136 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007247/0.5359, allocations: 2.842 MB / 0.5164 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/0.5523, allocations: 8.794 MB / 0.525 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.5523, allocations: 0.75 kB / 0.525 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.5523, allocations: 0 / 0.525 GB, free: 12.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004603/0.5528, allocations: 0.5938 kB / 0.525 GB, free: 12.07 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.02693/0.5797, allocations: 6.077 MB / 0.5309 GB, free: 8.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.5798, allocations: 9.625 kB / 0.5309 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01304/0.5928, allocations: 2.581 MB / 0.5334 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01095/0.6038, allocations: 3.738 MB / 0.5371 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003855/0.6043, allocations: 298.7 kB / 0.5374 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003242/0.6075, allocations: 429.5 kB / 0.5378 GB, free: 4.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02796/0.6355, allocations: 11.55 MB / 0.549 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002141/0.6357, allocations: 54.22 kB / 0.5491 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007944/0.6365, allocations: 186.8 kB / 0.5493 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003608/0.6402, allocations: 2.024 MB / 0.5513 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02433/0.6645, allocations: 9.938 MB / 0.561 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06598/0.7306, allocations: 45.54 MB / 0.6054 GB, free: 2.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01207/0.7427, allocations: 4.375 MB / 0.6097 GB, free: 13.97 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003776/0.7465, allocations: 2.467 MB / 0.6121 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01759/0.7641, allocations: 9.855 MB / 0.6217 GB, free: 1.535 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.781e-05/0.7642, allocations: 55.03 kB / 0.6218 GB, free: 1.477 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.218e-06/0.7642, allocations: 0 / 0.6218 GB, free: 1.477 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.06579/0.83, allocations: 19.9 MB / 0.6412 GB, free: 13.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.8302, allocations: 212.7 kB / 0.6414 GB, free: 13.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009035/0.8392, allocations: 4.689 MB / 0.646 GB, free: 8.574 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004289/0.8397, allocations: 57.7 kB / 0.6461 GB, free: 8.512 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002526/0.8422, allocations: 3.554 MB / 0.6495 GB, free: 4.957 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001012/0.8432, allocations: 0.7643 MB / 0.6503 GB, free: 4.199 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002014/0.8452, allocations: 1.329 MB / 0.6516 GB, free: 2.859 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.8454, allocations: 301.1 kB / 0.6519 GB, free: 2.562 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003751/0.8492, allocations: 2.41 MB / 0.6542 GB, free: 152 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007003/0.8562, allocations: 6.256 MB / 0.6603 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01128/0.8675, allocations: 9.291 MB / 0.6694 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.589e-05/0.8676, allocations: 40 kB / 0.6694 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01957/0.8872, allocations: 9.767 MB / 0.679 GB, free: 3.738 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.201e-05/0.8873, allocations: 64 kB / 0.679 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/0.8875, allocations: 136 kB / 0.6792 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004629/0.8921, allocations: 1.62 MB / 0.6807 GB, free: 1.918 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005403/0.8975, allocations: 1.478 MB / 0.6822 GB, free: 448 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01448/0.912, allocations: 10.26 MB / 0.6922 GB, free: 5.898 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005653/0.9177, allocations: 367.4 kB / 0.6926 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/0.9191, allocations: 384 kB / 0.6929 GB, free: 5.164 MB / 0.5294 GB 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.006244/0.9253, allocations: 2.462 MB / 0.6953 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/0.9266, allocations: 406.8 kB / 0.6957 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008681/0.9353, allocations: 4.231 MB / 0.6999 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.936e-05/0.9354, allocations: 27.19 kB / 0.6999 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.716e-05/0.9354, allocations: 8 kB / 0.6999 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.488e-05/0.9354, allocations: 15.91 kB / 0.6999 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01937/0.9548, allocations: 9.724 MB / 0.7094 GB, free: 4.227 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.672e-05/0.9549, allocations: 0 / 0.7094 GB, free: 4.227 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0015/0.9564, allocations: 303.6 kB / 0.7097 GB, free: 3.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003982/0.9604, allocations: 1.368 MB / 0.711 GB, free: 2.555 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002558/0.9607, allocations: 36 kB / 0.7111 GB, free: 2.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2609/1.222, allocations: 9.374 MB / 0.7202 GB, free: 189.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/1.222, allocations: 1.125 kB / 0.7202 GB, free: 189.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/1.234, allocations: 6.974 MB / 0.727 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/1.235, allocations: 455.2 kB / 0.7275 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005787/1.236, allocations: 28.77 kB / 0.7275 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/1.238, allocations: 118.8 kB / 0.7276 GB, free: 186.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004184/1.238, allocations: 127.6 kB / 0.7277 GB, free: 186.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/1.238, allocations: 45.78 kB / 0.7278 GB, free: 186.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004754/1.243, allocations: 2.962 MB / 0.7307 GB, free: 185.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.11e-07/1.243, allocations: 0 / 0.7307 GB, free: 185.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006828/1.25, allocations: 1.177 MB / 0.7318 GB, free: 185.4 MB / 0.545 GB 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.0004314/1.25, allocations: 172.1 kB / 0.732 GB, free: 185.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01073/1.261, allocations: 7.016 MB / 0.7388 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/1.261, allocations: 3.828 kB / 0.7388 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002721/1.264, allocations: 2.016 MB / 0.7408 GB, free: 182.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/1.267, allocations: 0.54 MB / 0.7413 GB, free: 182 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01692/1.284, allocations: 11.17 MB / 0.7522 GB, free: 174.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003554/1.288, allocations: 3.822 MB / 0.756 GB, free: 171.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004208/1.292, allocations: 1.982 MB / 0.7579 GB, free: 170.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006622/1.293, allocations: 266.3 kB / 0.7581 GB, free: 169.9 MB / 0.545 GB Notification: Performance of SimCode: time 8.22e-07/1.293, allocations: 0 / 0.7581 GB, free: 169.9 MB / 0.545 GB Notification: Performance of Templates: time 0.07195/1.364, allocations: 45.24 MB / 0.8023 GB, free: 125.8 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches