Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001656/0.001656, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.409/1.409, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.203/0.203, allocations: 44.18 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.72 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1155, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01098/0.1265, allocations: 10.37 MB / 480.3 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007736/0.1343, allocations: 3.872 MB / 484.2 MB, free: 76 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001703/0.1361, allocations: 59.81 kB / 484.2 MB, free: 16 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004003/0.1401, allocations: 2.075 MB / 486.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00454/0.1447, allocations: 1.7 MB / 488 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.1465, allocations: 0.694 MB / 488.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005467/0.152, allocations: 3.976 MB / 492.7 MB, free: 7.547 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003851/0.1559, allocations: 2.606 MB / 495.3 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002604/0.1585, allocations: 1.312 MB / 496.6 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002876/0.1614, allocations: 1.853 MB / 498.4 MB, free: 1.711 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.1624, allocations: 264 kB / 498.7 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002706/0.1652, allocations: 1.186 MB / 499.9 MB, free: 272 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002163/0.1674, allocations: 1.656 MB / 0.4898 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003183/0.1706, allocations: 1.907 MB / 0.4916 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007444/0.178, allocations: 5.993 MB / 0.4975 GB, free: 6.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.391e-05/0.1781, allocations: 0 / 0.4975 GB, free: 6.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1781, allocations: 0 / 0.4975 GB, free: 6.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00023/0.1784, allocations: 0 / 0.4975 GB, free: 6.676 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.009431/0.1878, allocations: 4.225 MB / 0.5016 GB, free: 2.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.1879, allocations: 8.031 kB / 0.5016 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2184/0.4063, allocations: 2.428 MB / 0.504 GB, free: 46.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006088/0.4125, allocations: 2.398 MB / 0.5063 GB, free: 45.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.4127, allocations: 193.8 kB / 0.5065 GB, free: 45.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009586/0.4136, allocations: 276.5 kB / 0.5068 GB, free: 45.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01544/0.4291, allocations: 8.574 MB / 0.5152 GB, free: 41.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001592/0.4293, allocations: 45.81 kB / 0.5152 GB, free: 41.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004872/0.4298, allocations: 125.5 kB / 0.5153 GB, free: 41.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003232/0.433, allocations: 1.736 MB / 0.517 GB, free: 40.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0139/0.447, allocations: 7.288 MB / 0.5241 GB, free: 38.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03337/0.4804, allocations: 34.15 MB / 0.5575 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007879/0.4883, allocations: 3.483 MB / 0.5609 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/0.4907, allocations: 1.708 MB / 0.5626 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/0.5022, allocations: 7.43 MB / 0.5698 GB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.5023, allocations: 55.5 kB / 0.5699 GB, free: 6.965 MB / 398.1 MB Notification: Performance of pre-optimization done (n=151): time 4.468e-06/0.5023, allocations: 0 / 0.5699 GB, free: 6.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=188): time 0.06545/0.5678, allocations: 19.61 MB / 0.589 GB, free: 3.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.5679, allocations: 205.2 kB / 0.5892 GB, free: 2.965 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005055/0.573, allocations: 3.738 MB / 0.5929 GB, free: 15.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003729/0.5734, allocations: 57.69 kB / 0.5929 GB, free: 15.17 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001918/0.5753, allocations: 2.799 MB / 0.5957 GB, free: 12.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009243/0.5763, allocations: 0.7172 MB / 0.5964 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001625/0.5779, allocations: 1.202 MB / 0.5975 GB, free: 10.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.942e-05/0.578, allocations: 305.1 kB / 0.5978 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003345/0.5814, allocations: 2.194 MB / 0.6 GB, free: 7.895 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005549/0.587, allocations: 5.77 MB / 0.6056 GB, free: 360 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009719/0.5967, allocations: 8.587 MB / 0.614 GB, free: 6.008 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.206e-05/0.5969, allocations: 36 kB / 0.614 GB, free: 5.973 MB / 446.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01937/0.6162, allocations: 9.178 MB / 0.623 GB, free: 12.78 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.585e-05/0.6164, allocations: 64.12 kB / 0.623 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/0.6165, allocations: 124 kB / 0.6232 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005889/0.6224, allocations: 1.672 MB / 0.6248 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/0.6268, allocations: 1.322 MB / 0.6261 GB, free: 9.598 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/0.6413, allocations: 9.924 MB / 0.6358 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004246/0.6455, allocations: 311.5 kB / 0.6361 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009145/0.6465, allocations: 360 kB / 0.6364 GB, free: 14.88 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003117/0.6496, allocations: 1.892 MB / 0.6383 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000674/0.6503, allocations: 335.8 kB / 0.6386 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009416/0.6597, allocations: 4.133 MB / 0.6426 GB, free: 8.492 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.958e-05/0.6598, allocations: 23.98 kB / 0.6426 GB, free: 8.469 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.921e-05/0.6599, allocations: 8 kB / 0.6427 GB, free: 8.461 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.52e-05/0.6599, allocations: 11.91 kB / 0.6427 GB, free: 8.449 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01772/0.6776, allocations: 8.528 MB / 0.651 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.153e-05/0.6777, allocations: 0 / 0.651 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.679, allocations: 251.6 kB / 0.6512 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005377/0.6844, allocations: 1.444 MB / 0.6526 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002816/0.6847, allocations: 32 kB / 0.6527 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/0.6982, allocations: 9.219 MB / 0.6617 GB, free: 4.762 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.6983, allocations: 8.031 kB / 0.6617 GB, free: 4.754 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01285/0.7111, allocations: 6.722 MB / 0.6682 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009678/0.7122, allocations: 372.7 kB / 0.6686 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008422/0.713, allocations: 35.98 kB / 0.6686 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001846/0.7149, allocations: 87.89 kB / 0.6687 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004368/0.7153, allocations: 109.1 kB / 0.6688 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001914/0.7155, allocations: 51.98 kB / 0.6689 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004138/0.7197, allocations: 2.32 MB / 0.6711 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.664e-06/0.7197, allocations: 0 / 0.6711 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005174/0.7249, allocations: 1.006 MB / 0.6721 GB, free: 10.03 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005885/0.7255, allocations: 164.4 kB / 0.6723 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01099/0.7365, allocations: 6.332 MB / 0.6785 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.7366, allocations: 0 / 0.6785 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002854/0.7394, allocations: 1.807 MB / 0.6802 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003014/0.7425, allocations: 389.3 kB / 0.6806 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/0.7591, allocations: 9.003 MB / 0.6894 GB, free: 8.332 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003741/0.7629, allocations: 2.957 MB / 0.6923 GB, free: 5.34 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009251/0.7639, allocations: 271.3 kB / 0.6925 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of SimCode: time 8.21e-07/0.7639, allocations: 0 / 0.6925 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of Templates: time 0.2763/1.04, allocations: 69.25 MB / 0.7602 GB, free: 125.8 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches