Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gc1.actuatedRevolute_b.phi|gc1.actuatedRevolute_b.w|gc2.actuatedRevolute_b.phi|gc2.actuatedRevolute_b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009647/0.0009649, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 221.3 MB / 236 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008249/0.0008249, allocations: 95.66 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1879/0.1879, allocations: 44.16 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.642e-05/2.645e-05, allocations: 4.219 kB / 451.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 61.91 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3737/0.4769, allocations: 110.5 MB / 0.6097 GB, free: 10.74 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/0.4771, allocations: 83.95 kB / 0.6097 GB, free: 10.66 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8732/1.35, allocations: 281 MB / 0.8842 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.064e-06/1.35, allocations: 4 kB / 0.8842 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0009989/1.351, allocations: 275.9 kB / 0.8844 GB, free: 19.23 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.04578/1.397, allocations: 12.86 MB / 0.897 GB, free: 6.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 8.976e-05/1.397, allocations: 12.03 kB / 0.897 GB, free: 6.258 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07313/1.47, allocations: 18.46 MB / 0.915 GB, free: 3.75 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3606/1.831, allocations: 14.08 MB / 0.9288 GB, free: 61.71 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001005/1.832, allocations: 1.072 MB / 0.9298 GB, free: 61.68 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008383/1.841, allocations: 1.419 MB / 0.9312 GB, free: 61.68 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08315/1.924, allocations: 35.32 MB / 0.9657 GB, free: 56.09 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001198/1.925, allocations: 134.9 kB / 0.9658 GB, free: 56.07 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009231/1.934, allocations: 0.6441 MB / 0.9665 GB, free: 56.07 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004911/1.939, allocations: 3.599 MB / 0.97 GB, free: 56.04 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0649/2.004, allocations: 31.69 MB / 1.001 GB, free: 52.11 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5388/2.543, allocations: 137.3 MB / 1.135 GB, free: 91.13 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03426/2.577, allocations: 15.05 MB / 1.15 GB, free: 89.25 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01188/2.589, allocations: 9.238 MB / 1.159 GB, free: 89.18 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05724/2.646, allocations: 34.51 MB / 1.192 GB, free: 86.77 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.888e-05/2.647, allocations: 95.19 kB / 1.193 GB, free: 86.72 MB / 0.573 GB Notification: Performance of pre-optimization done (n=705): time 1.331e-05/2.647, allocations: 2.469 kB / 1.193 GB, free: 86.72 MB / 0.573 GB Notification: Performance of matching and sorting (n=787): time 0.176/2.823, allocations: 68.62 MB / 1.26 GB, free: 62.28 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/2.823, allocations: 314 kB / 1.26 GB, free: 61.92 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01327/2.836, allocations: 9.074 MB / 1.269 GB, free: 53.99 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001297/2.837, allocations: 133.1 kB / 1.269 GB, free: 53.86 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005543/2.843, allocations: 9.573 MB / 1.278 GB, free: 45.31 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00379/2.847, allocations: 2.855 MB / 1.281 GB, free: 42.79 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001962/2.849, allocations: 343.1 kB / 1.281 GB, free: 42.45 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001116/2.85, allocations: 1.078 MB / 1.282 GB, free: 41.58 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01152/2.861, allocations: 7.802 MB / 1.29 GB, free: 34.53 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01562/2.877, allocations: 17.14 MB / 1.307 GB, free: 14.29 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01465/2.892, allocations: 11.67 MB / 1.318 GB, free: 4.832 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000238/2.892, allocations: 92 kB / 1.318 GB, free: 4.742 MB / 0.573 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.3894/3.281, allocations: 26.64 MB / 1.344 GB, free: 93.45 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002994/3.282, allocations: 144.6 kB / 1.344 GB, free: 93.45 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007546/3.282, allocations: 327.5 kB / 1.345 GB, free: 93.45 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007005/3.289, allocations: 2.396 MB / 1.347 GB, free: 93.43 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01594/3.305, allocations: 4.136 MB / 1.351 GB, free: 93.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02013/3.326, allocations: 14.33 MB / 1.365 GB, free: 90.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01406/3.34, allocations: 1.059 MB / 1.366 GB, free: 90.73 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003536/3.343, allocations: 0.9677 MB / 1.367 GB, free: 90.73 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1479 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2132): * Single equations (assignments): 2115 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003917/3.347, allocations: 1.39 MB / 1.368 GB, free: 90.61 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001974/3.349, allocations: 0.9812 MB / 1.369 GB, free: 90.61 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02452/3.374, allocations: 15.08 MB / 1.384 GB, free: 90.22 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002268/3.374, allocations: 155.1 kB / 1.384 GB, free: 90.22 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.733e-05/3.374, allocations: 15.38 kB / 1.384 GB, free: 90.22 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000173/3.374, allocations: 33.7 kB / 1.384 GB, free: 90.22 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06541/3.44, allocations: 33.33 MB / 1.417 GB, free: 88.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.025e-05/3.44, allocations: 8.938 kB / 1.417 GB, free: 88.12 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006287/3.446, allocations: 1.307 MB / 1.418 GB, free: 88.08 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00516/3.451, allocations: 1.775 MB / 1.42 GB, free: 87.71 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001534/3.453, allocations: 130 kB / 1.42 GB, free: 87.63 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01436/3.467, allocations: 12.91 MB / 1.433 GB, free: 80.91 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/3.467, allocations: 15.3 kB / 1.433 GB, free: 80.9 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03104/3.498, allocations: 25.28 MB / 1.457 GB, free: 70.48 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003135/3.501, allocations: 0.9711 MB / 1.458 GB, free: 70.04 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003295/3.505, allocations: 116.2 kB / 1.458 GB, free: 69.96 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006506/3.511, allocations: 0.5092 MB / 1.459 GB, free: 69.88 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001677/3.513, allocations: 417.2 kB / 1.459 GB, free: 69.81 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005907/3.514, allocations: 182.8 kB / 1.459 GB, free: 69.77 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01269/3.526, allocations: 6.27 MB / 1.465 GB, free: 67.68 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.82e-07/3.526, allocations: 0 / 1.465 GB, free: 67.68 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01573/3.542, allocations: 3.325 MB / 1.469 GB, free: 67.32 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (611): * Single equations (assignments): 594 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001308/3.543, allocations: 308.2 kB / 1.469 GB, free: 67.08 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02859/3.572, allocations: 18.75 MB / 1.487 GB, free: 55.1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/3.572, allocations: 0 / 1.487 GB, free: 55.1 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009762/3.582, allocations: 7.28 MB / 1.494 GB, free: 48.48 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006162/3.588, allocations: 1.248 MB / 1.496 GB, free: 47.45 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05154/3.64, allocations: 28.34 MB / 1.523 GB, free: 22.11 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01698/3.657, allocations: 10.29 MB / 1.533 GB, free: 14.68 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01734/3.674, allocations: 6.478 MB / 1.54 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003775/3.678, allocations: 0.7017 MB / 1.54 GB, free: 9.914 MB / 0.5886 GB Notification: Performance of SimCode: time 1.072e-06/3.678, allocations: 0 / 1.54 GB, free: 9.914 MB / 0.5886 GB Notification: Performance of Templates: time 0.5203/4.198, allocations: 99.78 MB / 1.638 GB, free: 97.76 MB / 0.6042 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint2/GearConstraint2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches