Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.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 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 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) 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(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint") translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00088/0.0008801, allocations: 97.17 kB / 16.98 MB, free: 6.398 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.0008827/0.0008827, allocations: 184 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.2 MB / 241.8 MB, free: 14.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2206/0.2206, allocations: 44.22 MB / 337.1 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003668/0.0003668, allocations: 11.98 kB / 409.5 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.154, allocations: 61.92 MB / 471.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.379/0.533, allocations: 69.88 MB / 0.5286 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04065/0.5737, allocations: 15.87 MB / 0.5441 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0238/0.5976, allocations: 349.7 kB / 0.5445 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01846/0.6161, allocations: 3.579 MB / 0.548 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04459/0.6607, allocations: 10.09 MB / 0.5578 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006077/0.6668, allocations: 0.795 MB / 0.5586 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.07196/0.7388, allocations: 49.73 MB / 0.6072 GB, free: 8.746 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01346/0.7523, allocations: 7.732 MB / 0.6147 GB, free: 0.957 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004788/0.7571, allocations: 1.947 MB / 0.6166 GB, free: 15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005851/0.763, allocations: 2.554 MB / 0.6191 GB, free: 12.44 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002267/0.7653, allocations: 280 kB / 0.6194 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004602/0.77, allocations: 1.01 MB / 0.6204 GB, free: 11.15 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005447/0.7754, allocations: 3.004 MB / 0.6233 GB, free: 8.141 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004008/0.7795, allocations: 1.602 MB / 0.6249 GB, free: 6.527 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01489/0.7944, allocations: 10.65 MB / 0.6353 GB, free: 11.85 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.7945, allocations: 0 / 0.6353 GB, free: 11.85 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.7945, allocations: 0 / 0.6353 GB, free: 11.85 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005906/0.7951, allocations: 0 / 0.6353 GB, free: 11.85 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.0212/0.8163, allocations: 7.555 MB / 0.6426 GB, free: 4.207 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.8164, allocations: 12.02 kB / 0.6427 GB, free: 4.195 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05626/0.8726, allocations: 11.49 MB / 0.6539 GB, free: 8.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/0.8883, allocations: 4.974 MB / 0.6587 GB, free: 3.621 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000524/0.8888, allocations: 451.2 kB / 0.6592 GB, free: 3.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003333/0.8922, allocations: 0.5777 MB / 0.6597 GB, free: 2.602 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04165/0.9339, allocations: 20.03 MB / 0.6793 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003206/0.9342, allocations: 63.41 kB / 0.6793 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002294/0.9365, allocations: 275.7 kB / 0.6796 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007361/0.9439, allocations: 4.235 MB / 0.6837 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04169/0.9856, allocations: 17.69 MB / 0.701 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6567/1.642, allocations: 73.6 MB / 0.7729 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01579/1.658, allocations: 7.89 MB / 0.7806 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003691/1.659, allocations: 62.45 kB / 0.7807 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/1.659, allocations: 77.25 kB / 0.7807 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 7.264e-06/1.659, allocations: 0 / 0.7807 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.09409/1.753, allocations: 41.63 MB / 0.8214 GB, free: 87.57 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.14e-05/1.753, allocations: 222.8 kB / 0.8216 GB, free: 87.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007656/1.761, allocations: 6.629 MB / 0.8281 GB, free: 80.67 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00112/1.762, allocations: 89.33 kB / 0.8282 GB, free: 80.58 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003038/1.765, allocations: 5.568 MB / 0.8336 GB, free: 75.02 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002264/1.767, allocations: 1.736 MB / 0.8353 GB, free: 73.29 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000634/1.768, allocations: 217.3 kB / 0.8355 GB, free: 73.08 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005137/1.768, allocations: 0.781 MB / 0.8363 GB, free: 72.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00671/1.775, allocations: 4.769 MB / 0.8409 GB, free: 67.52 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01298/1.788, allocations: 10.79 MB / 0.8515 GB, free: 53.79 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01061/1.799, allocations: 7.139 MB / 0.8584 GB, free: 46.64 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001647/1.799, allocations: 64 kB / 0.8585 GB, free: 46.58 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1446) (initialization): time 0.03319/1.832, allocations: 16.81 MB / 0.8749 GB, free: 29.74 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/1.832, allocations: 96 kB / 0.875 GB, free: 29.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002626/1.832, allocations: 212 kB / 0.8752 GB, free: 29.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004549/1.837, allocations: 1.851 MB / 0.877 GB, free: 27.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008322/1.845, allocations: 2.511 MB / 0.8795 GB, free: 25.06 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0151/1.86, allocations: 15.13 MB / 0.8942 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01024/1.871, allocations: 0.6479 MB / 0.8949 GB, free: 8.762 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002588/1.873, allocations: 0.6132 MB / 0.8955 GB, free: 8.148 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1322): * Single equations (assignments): 1309 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008648/1.882, allocations: 4.1 MB / 0.8995 GB, free: 4.039 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001399/1.883, allocations: 0.6053 MB / 0.9001 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01542/1.899, allocations: 9.442 MB / 0.9093 GB, free: 9.93 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000169/1.899, allocations: 87.98 kB / 0.9094 GB, free: 9.844 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.269e-05/1.899, allocations: 12 kB / 0.9094 GB, free: 9.832 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.457e-05/1.899, allocations: 19.92 kB / 0.9094 GB, free: 9.812 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3299/2.229, allocations: 21.23 MB / 0.9301 GB, free: 178.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.435e-05/2.229, allocations: 10.09 kB / 0.9301 GB, free: 178.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004031/2.233, allocations: 0.7423 MB / 0.9309 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004267/2.237, allocations: 1.508 MB / 0.9323 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009233/2.238, allocations: 83.2 kB / 0.9324 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/2.252, allocations: 14.06 MB / 0.9461 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/2.252, allocations: 15.53 kB / 0.9462 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02139/2.274, allocations: 16.9 MB / 0.9627 GB, free: 161.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/2.276, allocations: 0.6386 MB / 0.9633 GB, free: 161.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00215/2.278, allocations: 79.98 kB / 0.9634 GB, free: 161.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003928/2.282, allocations: 301.3 kB / 0.9637 GB, free: 161 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001075/2.283, allocations: 285.3 kB / 0.9639 GB, free: 161 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003607/2.284, allocations: 123.2 kB / 0.964 GB, free: 160.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006889/2.291, allocations: 4.153 MB / 0.9681 GB, free: 158.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.02e-07/2.291, allocations: 0 / 0.9681 GB, free: 158.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01189/2.303, allocations: 2.008 MB / 0.9701 GB, free: 156.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001501/2.304, allocations: 262.7 kB / 0.9703 GB, free: 156.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01712/2.321, allocations: 11.8 MB / 0.9818 GB, free: 146.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.361e-05/2.321, allocations: 4 kB / 0.9818 GB, free: 146.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00691/2.328, allocations: 4.789 MB / 0.9865 GB, free: 141.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004959/2.333, allocations: 0.7328 MB / 0.9872 GB, free: 141 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03478/2.368, allocations: 23.31 MB / 1.01 GB, free: 117.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009268/2.377, allocations: 6.119 MB / 1.016 GB, free: 111.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01056/2.388, allocations: 4.003 MB / 1.02 GB, free: 107.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002272/2.39, allocations: 443.4 kB / 1.02 GB, free: 107.1 MB / 0.545 GB Notification: Performance of SimCode: time 2.114e-06/2.39, allocations: 0 / 1.02 GB, free: 107.1 MB / 0.545 GB Notification: Performance of Templates: time 0.1112/2.501, allocations: 69.23 MB / 1.088 GB, free: 38.25 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches