Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001028/0.001029, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007406/0.0007406, allocations: 90.3 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3028/0.3028, allocations: 43.57 MB / 363.1 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003636, allocations: 15.98 kB / 432 MB, free: 5.797 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1006, allocations: 58.85 MB / 490.8 MB, free: 10.87 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.1942/0.2948, allocations: 31.53 MB / 0.5101 GB, free: 28.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01374/0.3086, allocations: 7.486 MB / 0.5174 GB, free: 23.06 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005029/0.3137, allocations: 147.9 kB / 0.5176 GB, free: 23.04 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004358/0.318, allocations: 1.578 MB / 0.5191 GB, free: 22.48 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01213/0.3302, allocations: 4.915 MB / 0.5239 GB, free: 20.43 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002443/0.3327, allocations: 0.6353 MB / 0.5245 GB, free: 20.2 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02022/0.3529, allocations: 18.44 MB / 0.5425 GB, free: 15.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00475/0.3577, allocations: 3.221 MB / 0.5457 GB, free: 14.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002156/0.3599, allocations: 1.13 MB / 0.5468 GB, free: 13.88 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002435/0.3624, allocations: 1.801 MB / 0.5485 GB, free: 13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005253/0.3629, allocations: 131.6 kB / 0.5487 GB, free: 12.99 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001959/0.3649, allocations: 1.093 MB / 0.5497 GB, free: 12.5 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001303/0.3662, allocations: 1.503 MB / 0.5512 GB, free: 11.69 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00136/0.3675, allocations: 1.654 MB / 0.5528 GB, free: 10.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003435/0.371, allocations: 4.696 MB / 0.5574 GB, free: 6.207 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.371, allocations: 0 / 0.5574 GB, free: 6.207 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.371, allocations: 0 / 0.5574 GB, free: 6.207 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.502e-05/0.3711, allocations: 0 / 0.5574 GB, free: 6.207 MB / 378.7 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.005368/0.3765, allocations: 3.485 MB / 0.5608 GB, free: 2.656 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3765, allocations: 16.02 kB / 0.5608 GB, free: 2.641 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01291/0.3894, allocations: 2.488 MB / 0.5633 GB, free: 148 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005099/0.3946, allocations: 2.452 MB / 0.5656 GB, free: 13.63 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.3947, allocations: 197.5 kB / 0.5658 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005505/0.3953, allocations: 279.6 kB / 0.5661 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/0.4069, allocations: 8.576 MB / 0.5745 GB, free: 3.957 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.514e-05/0.407, allocations: 43.64 kB / 0.5745 GB, free: 3.914 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003019/0.4073, allocations: 119.9 kB / 0.5746 GB, free: 3.797 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00244/0.4097, allocations: 1.739 MB / 0.5763 GB, free: 2.059 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/0.4224, allocations: 7.264 MB / 0.5834 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03766/0.46, allocations: 34.21 MB / 0.6168 GB, free: 7.512 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00777/0.4678, allocations: 3.513 MB / 0.6203 GB, free: 3.852 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002088/0.47, allocations: 1.713 MB / 0.6219 GB, free: 2.129 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/0.4803, allocations: 7.424 MB / 0.6292 GB, free: 10.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.4804, allocations: 59.55 kB / 0.6292 GB, free: 10.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=151): time 3.927e-06/0.4804, allocations: 0 / 0.6292 GB, free: 10.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=188): time 0.05734/0.5377, allocations: 19.97 MB / 0.6487 GB, free: 6.227 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.5379, allocations: 197.2 kB / 0.6489 GB, free: 5.992 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00472/0.5426, allocations: 3.731 MB / 0.6526 GB, free: 2.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003335/0.5429, allocations: 57.7 kB / 0.6526 GB, free: 2.207 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001758/0.5447, allocations: 2.799 MB / 0.6554 GB, free: 15.36 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007152/0.5454, allocations: 0.7134 MB / 0.6561 GB, free: 14.64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002445/0.5457, allocations: 124 kB / 0.6562 GB, free: 14.52 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003419/0.546, allocations: 0.562 MB / 0.6567 GB, free: 13.95 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003114/0.5491, allocations: 2.178 MB / 0.6589 GB, free: 11.76 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005096/0.5543, allocations: 5.739 MB / 0.6645 GB, free: 4.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009052/0.5633, allocations: 8.568 MB / 0.6728 GB, free: 9.926 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.557e-05/0.5634, allocations: 40 kB / 0.6729 GB, free: 9.887 MB / 0.4948 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01767/0.5811, allocations: 9.158 MB / 0.6818 GB, free: 0.7188 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.243e-05/0.5812, allocations: 60 kB / 0.6819 GB, free: 0.6602 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001345/0.5814, allocations: 124.9 kB / 0.682 GB, free: 0.5391 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2204/0.8018, allocations: 1.686 MB / 0.6836 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004631/0.8065, allocations: 1.321 MB / 0.6849 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/0.8196, allocations: 9.314 MB / 0.694 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004345/0.824, allocations: 313.5 kB / 0.6943 GB, free: 145.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009326/0.825, allocations: 364.6 kB / 0.6947 GB, free: 145.4 MB / 0.4948 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003225/0.8282, allocations: 1.893 MB / 0.6965 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006663/0.8289, allocations: 340.9 kB / 0.6968 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008376/0.8373, allocations: 4.151 MB / 0.7009 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.765e-05/0.8374, allocations: 26.86 kB / 0.7009 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.772e-05/0.8374, allocations: 6.094 kB / 0.7009 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-05/0.8374, allocations: 9.625 kB / 0.7009 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/0.8529, allocations: 8.574 MB / 0.7093 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-05/0.8529, allocations: 5.406 kB / 0.7093 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.8541, allocations: 249.3 kB / 0.7095 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004777/0.8589, allocations: 1.457 MB / 0.711 GB, free: 140 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002646/0.8592, allocations: 35.5 kB / 0.711 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/0.8707, allocations: 8.607 MB / 0.7194 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.8707, allocations: 1.188 kB / 0.7194 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01176/0.8825, allocations: 6.741 MB / 0.726 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001639/0.8842, allocations: 0.6332 MB / 0.7266 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000428/0.8846, allocations: 31.2 kB / 0.7266 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.8859, allocations: 88.86 kB / 0.7267 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003773/0.8863, allocations: 113 kB / 0.7268 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.8864, allocations: 54.5 kB / 0.7269 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004103/0.8905, allocations: 2.313 MB / 0.7291 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8906, allocations: 0 / 0.7291 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006185/0.8968, allocations: 0.9989 MB / 0.7301 GB, free: 132.3 MB / 0.4948 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005701/0.8973, allocations: 162.2 kB / 0.7303 GB, free: 132.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008485/0.9058, allocations: 5.386 MB / 0.7355 GB, free: 130.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.9059, allocations: 4 kB / 0.7355 GB, free: 130.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002262/0.9082, allocations: 1.795 MB / 0.7373 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.9108, allocations: 369 kB / 0.7376 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01288/0.9237, allocations: 10.39 MB / 0.7478 GB, free: 123 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002321/0.926, allocations: 2.967 MB / 0.7507 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008503/0.9269, allocations: 266 kB / 0.7509 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.513e-06/0.9269, allocations: 0 / 0.7509 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.07486/1.002, allocations: 68.71 MB / 0.818 GB, free: 52.57 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches