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.001463/0.001463, allocations: 105 kB / 16.94 MB, free: 6.156 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.00141/0.00141, allocations: 191.3 kB / 17.86 MB, free: 5.289 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.481/1.481, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.2096/0.2096, allocations: 43.51 MB / 314.6 MB, free: 0.5352 MB / 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.001719/0.001719, allocations: 75.72 kB / 383.4 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1064, allocations: 57.79 MB / 441.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.009163/0.1156, allocations: 10.39 MB / 451.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007808/0.1235, allocations: 3.869 MB / 455.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.1252, allocations: 59.81 kB / 455.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003857/0.1292, allocations: 2.083 MB / 457.6 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004372/0.1336, allocations: 1.696 MB / 459.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.1353, allocations: 0.6979 MB / 460 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005437/0.1408, allocations: 3.802 MB / 463.8 MB, free: 248 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003777/0.1446, allocations: 2.605 MB / 466.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.147, allocations: 1.328 MB / 467.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002777/0.1498, allocations: 1.842 MB / 469.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009919/0.1509, allocations: 268 kB / 469.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002864/0.1537, allocations: 1.182 MB / 471 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002163/0.1559, allocations: 1.668 MB / 472.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003141/0.1591, allocations: 1.899 MB / 474.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007621/0.1667, allocations: 5.997 MB / 480.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.069e-05/0.1668, allocations: 0 / 480.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1668, allocations: 3.938 kB / 480.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002134/0.167, allocations: 4 kB / 480.6 MB, free: 15.35 MB / 366.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.008558/0.1756, allocations: 4.218 MB / 484.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.1756, allocations: 11.89 kB / 484.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01624/0.1919, allocations: 2.433 MB / 487.2 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005736/0.1976, allocations: 2.452 MB / 489.7 MB, free: 6.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/0.1978, allocations: 193.3 kB / 489.9 MB, free: 5.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007397/0.1986, allocations: 279.8 kB / 490.1 MB, free: 5.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.2129, allocations: 8.576 MB / 498.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/0.2131, allocations: 43.59 kB / 498.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003785/0.2135, allocations: 127.9 kB / 498.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002771/0.2162, allocations: 1.731 MB / 0.4889 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01425/0.2305, allocations: 7.292 MB / 0.496 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2536/0.4841, allocations: 34.16 MB / 0.5294 GB, free: 79.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009774/0.494, allocations: 3.475 MB / 0.5328 GB, free: 78.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002454/0.4964, allocations: 1.718 MB / 0.5344 GB, free: 78.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01246/0.5089, allocations: 7.427 MB / 0.5417 GB, free: 76.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.509, allocations: 53.72 kB / 0.5417 GB, free: 76.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=151): time 5.751e-06/0.509, allocations: 0 / 0.5417 GB, free: 76.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=188): time 0.06059/0.5696, allocations: 19.63 MB / 0.5609 GB, free: 69.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.78e-05/0.5697, allocations: 200.1 kB / 0.5611 GB, free: 69.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004148/0.5739, allocations: 3.756 MB / 0.5648 GB, free: 66.01 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003303/0.5742, allocations: 53.7 kB / 0.5648 GB, free: 65.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.5754, allocations: 2.796 MB / 0.5676 GB, free: 63.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005702/0.5759, allocations: 0.7232 MB / 0.5683 GB, free: 62.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00118/0.5771, allocations: 1.198 MB / 0.5694 GB, free: 61.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.612e-05/0.5772, allocations: 309.1 kB / 0.5697 GB, free: 60.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002386/0.5796, allocations: 2.202 MB / 0.5719 GB, free: 58.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003483/0.5831, allocations: 5.761 MB / 0.5775 GB, free: 51.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007006/0.5901, allocations: 8.592 MB / 0.5859 GB, free: 41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.719e-05/0.5902, allocations: 36 kB / 0.5859 GB, free: 40.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01577/0.606, allocations: 9.177 MB / 0.5949 GB, free: 31.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.122e-05/0.6061, allocations: 56.22 kB / 0.5949 GB, free: 31.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.6062, allocations: 132 kB / 0.5951 GB, free: 31.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005069/0.6113, allocations: 1.66 MB / 0.5967 GB, free: 29.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003969/0.6153, allocations: 1.318 MB / 0.598 GB, free: 28.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/0.6275, allocations: 9.942 MB / 0.6077 GB, free: 18.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004287/0.6318, allocations: 311.5 kB / 0.608 GB, free: 18.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001/0.6328, allocations: 368 kB / 0.6083 GB, free: 17.89 MB / 414.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.003462/0.6363, allocations: 1.891 MB / 0.6102 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008275/0.6372, allocations: 331.7 kB / 0.6105 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008696/0.6459, allocations: 4.141 MB / 0.6145 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.05e-05/0.6459, allocations: 22.06 kB / 0.6146 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.031e-05/0.646, allocations: 8 kB / 0.6146 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.702e-05/0.646, allocations: 7.969 kB / 0.6146 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01644/0.6624, allocations: 8.541 MB / 0.6229 GB, free: 2.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/0.6625, allocations: 4.469 kB / 0.6229 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.6637, allocations: 251.6 kB / 0.6232 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004741/0.6685, allocations: 1.432 MB / 0.6246 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002435/0.6687, allocations: 39.45 kB / 0.6246 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/0.6824, allocations: 9.227 MB / 0.6336 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.6824, allocations: 12.48 kB / 0.6336 GB, free: 7.809 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01289/0.6953, allocations: 6.71 MB / 0.6402 GB, free: 1.074 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002051/0.6974, allocations: 0.6178 MB / 0.6408 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001103/0.6985, allocations: 28 kB / 0.6408 GB, free: 416 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00219/0.7008, allocations: 91.56 kB / 0.6409 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004169/0.7012, allocations: 117.1 kB / 0.641 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/0.7014, allocations: 55.98 kB / 0.6411 GB, free: 152 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004581/0.706, allocations: 2.324 MB / 0.6433 GB, free: 13.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.706, allocations: 0 / 0.6433 GB, free: 13.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005335/0.7113, allocations: 0.9973 MB / 0.6443 GB, free: 12.85 MB / 446.1 MB 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.0005975/0.712, allocations: 165.5 kB / 0.6445 GB, free: 12.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01107/0.723, allocations: 6.333 MB / 0.6506 GB, free: 6.383 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.036e-06/0.7231, allocations: 0.9375 kB / 0.6506 GB, free: 6.383 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00287/0.726, allocations: 1.803 MB / 0.6524 GB, free: 4.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003136/0.7291, allocations: 392.5 kB / 0.6528 GB, free: 4.195 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0177/0.7469, allocations: 9.014 MB / 0.6616 GB, free: 11.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004334/0.7512, allocations: 2.955 MB / 0.6645 GB, free: 8.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.7523, allocations: 263.4 kB / 0.6647 GB, free: 7.922 MB / 462.1 MB Notification: Performance of SimCode: time 6.02e-07/0.7523, allocations: 0 / 0.6647 GB, free: 7.922 MB / 462.1 MB Notification: Performance of Templates: time 0.3036/1.056, allocations: 69.32 MB / 0.7324 GB, free: 160.8 MB / 0.4981 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