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.001482/0.001483, allocations: 111.7 kB / 18.46 MB, free: 4.617 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.001459/0.001459, allocations: 186.1 kB / 19.39 MB, free: 3.695 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.444/1.444, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.2236/0.2236, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.89 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3695, allocations: 60.82 MB / 0.5196 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01164/0.3812, allocations: 10.38 MB / 0.5297 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00932/0.3906, allocations: 3.869 MB / 0.5335 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002605/0.3932, allocations: 60.59 kB / 0.5335 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004953/0.3982, allocations: 2.066 MB / 0.5356 GB, free: 7.965 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006288/0.4045, allocations: 1.743 MB / 0.5373 GB, free: 6.742 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00251/0.4071, allocations: 0.7004 MB / 0.5379 GB, free: 6.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007303/0.4144, allocations: 3.972 MB / 0.5418 GB, free: 4.094 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004841/0.4193, allocations: 2.604 MB / 0.5444 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00278/0.4221, allocations: 1.308 MB / 0.5456 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003263/0.4254, allocations: 1.85 MB / 0.5475 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009654/0.4263, allocations: 268 kB / 0.5477 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00303/0.4294, allocations: 1.198 MB / 0.5489 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002364/0.4318, allocations: 1.691 MB / 0.5505 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003753/0.4355, allocations: 1.903 MB / 0.5524 GB, free: 10.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008491/0.4441, allocations: 6.207 MB / 0.5584 GB, free: 4.109 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.4441, allocations: 0 / 0.5584 GB, free: 4.109 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.4441, allocations: 3.984 kB / 0.5585 GB, free: 4.105 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002039/0.4443, allocations: 0 / 0.5585 GB, free: 4.105 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.01108/0.4554, allocations: 4.228 MB / 0.5626 GB, free: 15.81 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.4555, allocations: 8.031 kB / 0.5626 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01699/0.4725, allocations: 2.429 MB / 0.565 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005733/0.4782, allocations: 2.441 MB / 0.5673 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.4784, allocations: 197.3 kB / 0.5675 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007998/0.4792, allocations: 279.9 kB / 0.5678 GB, free: 10.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01318/0.4924, allocations: 8.583 MB / 0.5762 GB, free: 1.184 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001/0.4926, allocations: 35.66 kB / 0.5762 GB, free: 1.148 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003305/0.4929, allocations: 127.9 kB / 0.5763 GB, free: 1.023 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002762/0.4957, allocations: 1.739 MB / 0.578 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.5088, allocations: 7.28 MB / 0.5851 GB, free: 7.996 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04361/0.5525, allocations: 34.02 MB / 0.6184 GB, free: 4.883 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009099/0.5616, allocations: 3.482 MB / 0.6218 GB, free: 1.25 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00233/0.564, allocations: 1.713 MB / 0.6234 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01128/0.5753, allocations: 7.427 MB / 0.6307 GB, free: 7.824 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.5753, allocations: 47.56 kB / 0.6307 GB, free: 7.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 4.328e-06/0.5753, allocations: 0 / 0.6307 GB, free: 7.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06347/0.6388, allocations: 19.6 MB / 0.6499 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.132e-05/0.639, allocations: 201.2 kB / 0.6501 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004594/0.6436, allocations: 3.742 MB / 0.6537 GB, free: 36 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002127/0.6438, allocations: 49.78 kB / 0.6538 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001741/0.6455, allocations: 2.806 MB / 0.6565 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006743/0.6462, allocations: 0.7213 MB / 0.6572 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/0.6478, allocations: 1.202 MB / 0.6584 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.6479, allocations: 301.1 kB / 0.6587 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003126/0.651, allocations: 2.198 MB / 0.6608 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005572/0.6566, allocations: 5.774 MB / 0.6665 GB, free: 1.141 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/0.6673, allocations: 8.583 MB / 0.6749 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000123/0.6675, allocations: 36 kB / 0.6749 GB, free: 6.773 MB / 0.5294 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01963/0.6871, allocations: 9.184 MB / 0.6839 GB, free: 13.57 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.085e-05/0.6873, allocations: 60 kB / 0.6839 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001589/0.6874, allocations: 128.2 kB / 0.684 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005971/0.6934, allocations: 1.656 MB / 0.6857 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005323/0.6988, allocations: 1.326 MB / 0.6869 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01538/0.7142, allocations: 9.908 MB / 0.6966 GB, free: 352 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004903/0.7191, allocations: 315.4 kB / 0.6969 GB, free: 36 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007237/0.7199, allocations: 364 kB / 0.6973 GB, free: 15.68 MB / 0.5606 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.002749/0.7226, allocations: 1.889 MB / 0.6991 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006057/0.7233, allocations: 327.8 kB / 0.6994 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00935/0.7326, allocations: 4.137 MB / 0.7035 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.042e-05/0.7327, allocations: 15.91 kB / 0.7035 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.7327, allocations: 0 / 0.7035 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/0.7338, allocations: 376.7 kB / 0.7038 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005605/0.7343, allocations: 24 kB / 0.7039 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/0.7358, allocations: 95.72 kB / 0.704 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.7361, allocations: 141.1 kB / 0.7041 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009432/0.7456, allocations: 4.484 MB / 0.7085 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006873/0.7525, allocations: 5.336 MB / 0.7137 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001736/0.7542, allocations: 1.408 MB / 0.7151 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003361/0.7576, allocations: 2.327 MB / 0.7173 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of Backend: time 4.61e-07/0.7576, allocations: 0 / 0.7173 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009149/0.7668, allocations: 4.4 MB / 0.7216 GB, free: 6.664 MB / 0.5762 GB Notification: Performance of SimCode: time 0.2659/1.033, allocations: 8.42 MB / 0.7298 GB, free: 185.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.07211/1.105, allocations: 46.85 MB / 0.7756 GB, free: 155.5 MB / 0.5762 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