Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_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.001347/0.001347, allocations: 119.2 kB / 17.09 MB, free: 5.965 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.001682/0.001682, allocations: 197.2 kB / 18.02 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2119/0.2119, allocations: 43.53 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 77.97 kB / 442.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1047, allocations: 57.8 MB / 0.4886 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01106/0.1158, allocations: 10.4 MB / 0.4987 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007464/0.1233, allocations: 3.865 MB / 0.5025 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.1248, allocations: 63.81 kB / 0.5025 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004038/0.1289, allocations: 2.067 MB / 0.5046 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0043/0.1333, allocations: 1.712 MB / 0.5062 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.1349, allocations: 0.6979 MB / 0.5069 GB, free: 8.906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004993/0.14, allocations: 3.806 MB / 0.5106 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00347/0.1434, allocations: 2.605 MB / 0.5132 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.1457, allocations: 1.312 MB / 0.5145 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003017/0.1487, allocations: 1.853 MB / 0.5163 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00105/0.1498, allocations: 264 kB / 0.5165 GB, free: 15 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002604/0.1524, allocations: 1.186 MB / 0.5177 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002164/0.1546, allocations: 1.695 MB / 0.5193 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003156/0.1578, allocations: 1.907 MB / 0.5212 GB, free: 10.19 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007608/0.1654, allocations: 6.209 MB / 0.5273 GB, free: 3.953 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1654, allocations: 0 / 0.5273 GB, free: 3.953 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1655, allocations: 0 / 0.5273 GB, free: 3.953 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002108/0.1657, allocations: 0 / 0.5273 GB, free: 3.953 MB / 414.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.2517/0.4174, allocations: 4.223 MB / 0.5314 GB, free: 37.31 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.4175, allocations: 13.61 kB / 0.5314 GB, free: 37.31 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01672/0.4342, allocations: 2.427 MB / 0.5338 GB, free: 37.06 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00571/0.4399, allocations: 2.5 MB / 0.5362 GB, free: 36.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.4401, allocations: 196.4 kB / 0.5364 GB, free: 36.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007847/0.4409, allocations: 270.2 kB / 0.5366 GB, free: 36.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/0.456, allocations: 8.575 MB / 0.545 GB, free: 32.95 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/0.4562, allocations: 42.39 kB / 0.5451 GB, free: 32.92 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003595/0.4566, allocations: 131.8 kB / 0.5452 GB, free: 32.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002988/0.4596, allocations: 1.732 MB / 0.5469 GB, free: 32.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01378/0.4733, allocations: 7.291 MB / 0.554 GB, free: 29.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03295/0.5064, allocations: 34.04 MB / 0.5872 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008765/0.5151, allocations: 3.478 MB / 0.5906 GB, free: 8.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002366/0.5176, allocations: 1.72 MB / 0.5923 GB, free: 7 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/0.5291, allocations: 7.43 MB / 0.5996 GB, free: 15.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.5292, allocations: 55.48 kB / 0.5996 GB, free: 15.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.629e-06/0.5292, allocations: 7.938 kB / 0.5996 GB, free: 15.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06614/0.5953, allocations: 19.62 MB / 0.6188 GB, free: 11.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.5955, allocations: 205.2 kB / 0.619 GB, free: 11.21 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006609/0.6021, allocations: 3.743 MB / 0.6226 GB, free: 7.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000427/0.6026, allocations: 57.69 kB / 0.6227 GB, free: 7.418 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002274/0.6049, allocations: 2.795 MB / 0.6254 GB, free: 4.582 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/0.606, allocations: 0.7212 MB / 0.6261 GB, free: 3.852 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002605/0.6086, allocations: 1.206 MB / 0.6273 GB, free: 2.633 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.95e-05/0.6087, allocations: 301.1 kB / 0.6276 GB, free: 2.336 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003413/0.6121, allocations: 2.206 MB / 0.6298 GB, free: 128 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005923/0.6181, allocations: 5.766 MB / 0.6354 GB, free: 8.582 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.6282, allocations: 8.59 MB / 0.6438 GB, free: 14.24 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001373/0.6284, allocations: 40 kB / 0.6438 GB, free: 14.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01893/0.6474, allocations: 9.173 MB / 0.6528 GB, free: 5.016 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.6475, allocations: 64.17 kB / 0.6528 GB, free: 4.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001773/0.6477, allocations: 124 kB / 0.6529 GB, free: 4.832 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00568/0.6534, allocations: 1.661 MB / 0.6546 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004295/0.6577, allocations: 1.322 MB / 0.6559 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/0.6725, allocations: 9.909 MB / 0.6655 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004266/0.6768, allocations: 319.5 kB / 0.6658 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009836/0.6778, allocations: 364 kB / 0.6662 GB, free: 7.117 MB / 0.4981 GB 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.003557/0.6814, allocations: 1.9 MB / 0.668 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008456/0.6822, allocations: 327.7 kB / 0.6684 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009647/0.6919, allocations: 4.133 MB / 0.6724 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.029e-05/0.6919, allocations: 20 kB / 0.6724 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.026e-05/0.692, allocations: 8 kB / 0.6724 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.338e-05/0.692, allocations: 15.91 kB / 0.6724 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01902/0.711, allocations: 8.508 MB / 0.6807 GB, free: 8.117 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/0.7111, allocations: 0 / 0.6807 GB, free: 8.117 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.7124, allocations: 247.6 kB / 0.681 GB, free: 7.875 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005242/0.7177, allocations: 1.432 MB / 0.6824 GB, free: 6.438 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002434/0.7179, allocations: 28 kB / 0.6824 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0135/0.7314, allocations: 9.228 MB / 0.6914 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.7315, allocations: 0 / 0.6914 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01244/0.7439, allocations: 6.719 MB / 0.698 GB, free: 6.293 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00163/0.7456, allocations: 0.6294 MB / 0.6986 GB, free: 5.641 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007813/0.7464, allocations: 32 kB / 0.6986 GB, free: 5.609 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/0.7482, allocations: 95.81 kB / 0.6987 GB, free: 5.516 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003957/0.7486, allocations: 121 kB / 0.6988 GB, free: 5.398 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001574/0.7488, allocations: 52 kB / 0.6989 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004381/0.7532, allocations: 2.324 MB / 0.7011 GB, free: 3.039 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7532, allocations: 0 / 0.7011 GB, free: 3.039 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005307/0.7585, allocations: 1.005 MB / 0.7021 GB, free: 2.039 MB / 0.5294 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.0005636/0.7591, allocations: 164.2 kB / 0.7023 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008562/0.7677, allocations: 5.415 MB / 0.7076 GB, free: 12.48 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.7677, allocations: 3.938 kB / 0.7076 GB, free: 12.47 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002646/0.7704, allocations: 1.796 MB / 0.7093 GB, free: 10.66 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002914/0.7733, allocations: 388.7 kB / 0.7097 GB, free: 10.29 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01594/0.7893, allocations: 8.912 MB / 0.7184 GB, free: 1.34 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003868/0.7932, allocations: 2.961 MB / 0.7213 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/0.7942, allocations: 271.4 kB / 0.7216 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of SimCode: time 1.022e-06/0.7943, allocations: 0 / 0.7216 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of Templates: time 0.3152/1.109, allocations: 69.92 MB / 0.7898 GB, free: 172 MB / 0.5762 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches