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.00127/0.00127, allocations: 108.3 kB / 18.4 MB, free: 4.699 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.001173/0.001173, allocations: 191 kB / 19.34 MB, free: 3.766 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.337/1.337, allocations: 222.9 MB / 243 MB, free: 15.14 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.2119/0.2119, allocations: 44.17 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 65.75 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1051, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01081/0.1159, allocations: 10.37 MB / 481.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006571/0.1225, allocations: 3.86 MB / 484.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009034/0.1235, allocations: 63.81 kB / 485 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003524/0.127, allocations: 2.079 MB / 487.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003723/0.1308, allocations: 1.704 MB / 488.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.1324, allocations: 0.6978 MB / 489.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005737/0.1381, allocations: 3.977 MB / 493.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003651/0.1418, allocations: 2.602 MB / 496.1 MB, free: 4.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002378/0.1442, allocations: 1.312 MB / 497.4 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002552/0.1468, allocations: 1.846 MB / 499.2 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005879/0.1474, allocations: 264 kB / 499.5 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002036/0.1494, allocations: 1.198 MB / 0.4889 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001482/0.1509, allocations: 1.656 MB / 0.4906 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.1528, allocations: 1.899 MB / 0.4924 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005537/0.1583, allocations: 6.213 MB / 0.4985 GB, free: 5.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1584, allocations: 0 / 0.4985 GB, free: 5.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1584, allocations: 0 / 0.4985 GB, free: 5.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001268/0.1585, allocations: 0 / 0.4985 GB, free: 5.73 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.007651/0.1662, allocations: 4.225 MB / 0.5026 GB, free: 1.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1662, allocations: 8.031 kB / 0.5026 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2261/0.3924, allocations: 2.432 MB / 0.505 GB, free: 46.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005978/0.3984, allocations: 2.438 MB / 0.5074 GB, free: 45.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.3985, allocations: 191.4 kB / 0.5076 GB, free: 45.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007349/0.3993, allocations: 274 kB / 0.5078 GB, free: 45.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.4137, allocations: 8.573 MB / 0.5162 GB, free: 41.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/0.4138, allocations: 46.66 kB / 0.5162 GB, free: 41.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003746/0.4142, allocations: 131.5 kB / 0.5164 GB, free: 41.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003082/0.4173, allocations: 1.731 MB / 0.518 GB, free: 41.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01288/0.4302, allocations: 7.286 MB / 0.5252 GB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03292/0.4632, allocations: 34.02 MB / 0.5584 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007244/0.4705, allocations: 3.488 MB / 0.5618 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002272/0.4728, allocations: 1.709 MB / 0.5635 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.484, allocations: 7.426 MB / 0.5707 GB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.577e-05/0.4841, allocations: 51.56 kB / 0.5708 GB, free: 6.129 MB / 398.1 MB Notification: Performance of pre-optimization done (n=151): time 6.232e-06/0.4841, allocations: 0 / 0.5708 GB, free: 6.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=188): time 0.06147/0.5456, allocations: 19.6 MB / 0.5899 GB, free: 2.379 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001912/0.5458, allocations: 205.2 kB / 0.5901 GB, free: 2.137 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006337/0.5522, allocations: 3.738 MB / 0.5937 GB, free: 14.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005377/0.5528, allocations: 49.7 kB / 0.5938 GB, free: 14.35 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00306/0.5558, allocations: 2.806 MB / 0.5965 GB, free: 11.51 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/0.5569, allocations: 0.7173 MB / 0.5972 GB, free: 10.78 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001799/0.5587, allocations: 1.202 MB / 0.5984 GB, free: 9.566 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.5589, allocations: 301.1 kB / 0.5987 GB, free: 9.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003288/0.5622, allocations: 2.202 MB / 0.6008 GB, free: 7.062 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006113/0.5684, allocations: 5.766 MB / 0.6065 GB, free: 15.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/0.5797, allocations: 8.598 MB / 0.6149 GB, free: 5.172 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.443e-05/0.5798, allocations: 36 kB / 0.6149 GB, free: 5.137 MB / 446.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.0194/0.5992, allocations: 9.18 MB / 0.6239 GB, free: 11.95 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.304e-05/0.5993, allocations: 56.19 kB / 0.6239 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001336/0.5995, allocations: 128 kB / 0.624 GB, free: 11.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005911/0.6054, allocations: 1.661 MB / 0.6257 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004753/0.6102, allocations: 1.33 MB / 0.627 GB, free: 8.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/0.6249, allocations: 9.908 MB / 0.6366 GB, free: 14.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004482/0.6294, allocations: 311.6 kB / 0.6369 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006776/0.6301, allocations: 360 kB / 0.6373 GB, free: 14.07 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.002745/0.6329, allocations: 1.892 MB / 0.6391 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006637/0.6336, allocations: 335.7 kB / 0.6395 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009157/0.6427, allocations: 4.133 MB / 0.6435 GB, free: 7.676 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.543e-05/0.6428, allocations: 23.98 kB / 0.6435 GB, free: 7.652 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.6428, allocations: 11.98 kB / 0.6435 GB, free: 7.641 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.351e-05/0.6428, allocations: 11.91 kB / 0.6435 GB, free: 7.629 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01744/0.6603, allocations: 8.505 MB / 0.6518 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.6603, allocations: 0 / 0.6518 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.6616, allocations: 251.6 kB / 0.6521 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005186/0.6668, allocations: 1.429 MB / 0.6535 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/0.667, allocations: 32 kB / 0.6535 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01344/0.6804, allocations: 9.219 MB / 0.6625 GB, free: 3.98 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.6804, allocations: 4 kB / 0.6625 GB, free: 3.977 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.6928, allocations: 6.718 MB / 0.6691 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001199/0.6941, allocations: 380.7 kB / 0.6694 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005271/0.6946, allocations: 31.98 kB / 0.6695 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.696, allocations: 83.89 kB / 0.6695 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/0.6964, allocations: 121 kB / 0.6697 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/0.6966, allocations: 51.98 kB / 0.6697 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003568/0.7002, allocations: 2.32 MB / 0.672 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7002, allocations: 4 kB / 0.672 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004903/0.7051, allocations: 0.9974 MB / 0.673 GB, free: 9.25 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.0004627/0.7056, allocations: 162.2 kB / 0.6731 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008241/0.7138, allocations: 5.42 MB / 0.6784 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.7139, allocations: 0 / 0.6784 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002711/0.7166, allocations: 1.797 MB / 0.6802 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.7187, allocations: 391.9 kB / 0.6805 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.7317, allocations: 8.534 MB / 0.6889 GB, free: 8.934 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00297/0.7347, allocations: 2.961 MB / 0.6918 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003828/0.7386, allocations: 1.808 MB / 0.6935 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005683/0.7392, allocations: 227.4 kB / 0.6937 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of SimCode: time 6.11e-07/0.7392, allocations: 0 / 0.6937 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of Templates: time 0.2469/0.9861, allocations: 34.32 MB / 0.7273 GB, free: 160.4 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 -s cvode -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