Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 226.6 MB / 243.4 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 105.2 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4275/0.4275, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002961/0.0002963, allocations: 11.98 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3541, allocations: 62.96 MB / 0.5159 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02308/0.3772, allocations: 31.52 MB / 0.5467 GB, free: 14.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01549/0.3928, allocations: 7.5 MB / 0.554 GB, free: 9.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006277/0.3991, allocations: 152.5 kB / 0.5541 GB, free: 9.543 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005289/0.4044, allocations: 1.583 MB / 0.5557 GB, free: 8.98 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01581/0.4203, allocations: 4.906 MB / 0.5605 GB, free: 6.941 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003175/0.4235, allocations: 0.6343 MB / 0.5611 GB, free: 6.699 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.04124/0.4647, allocations: 32.12 MB / 0.5924 GB, free: 10.91 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00532/0.4701, allocations: 3.202 MB / 0.5956 GB, free: 7.637 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002592/0.4727, allocations: 1.132 MB / 0.5967 GB, free: 6.5 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003141/0.4759, allocations: 1.795 MB / 0.5984 GB, free: 4.699 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007545/0.4767, allocations: 120 kB / 0.5985 GB, free: 4.582 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002595/0.4793, allocations: 1.092 MB / 0.5996 GB, free: 3.488 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002022/0.4814, allocations: 1.492 MB / 0.6011 GB, free: 1.992 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0024/0.4838, allocations: 1.652 MB / 0.6027 GB, free: 332 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005379/0.4892, allocations: 4.688 MB / 0.6073 GB, free: 11.62 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.4892, allocations: 0 / 0.6073 GB, free: 11.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.4892, allocations: 0 / 0.6073 GB, free: 11.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001776/0.4894, allocations: 0 / 0.6073 GB, free: 11.62 MB / 426.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.007417/0.4969, allocations: 3.493 MB / 0.6107 GB, free: 8.066 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.4969, allocations: 12.88 kB / 0.6107 GB, free: 8.055 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01442/0.5113, allocations: 2.492 MB / 0.6131 GB, free: 5.555 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005357/0.5167, allocations: 2.37 MB / 0.6154 GB, free: 3.121 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.517, allocations: 193.3 kB / 0.6156 GB, free: 2.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009547/0.5179, allocations: 275.6 kB / 0.6159 GB, free: 2.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01478/0.5327, allocations: 8.583 MB / 0.6243 GB, free: 9.445 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/0.5329, allocations: 39.59 kB / 0.6243 GB, free: 9.406 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004615/0.5333, allocations: 127.9 kB / 0.6244 GB, free: 9.281 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00275/0.5361, allocations: 1.743 MB / 0.6261 GB, free: 7.539 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.5499, allocations: 7.272 MB / 0.6332 GB, free: 264 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03869/0.5886, allocations: 34.19 MB / 0.6666 GB, free: 12.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008212/0.5969, allocations: 3.522 MB / 0.6701 GB, free: 9.309 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002307/0.5992, allocations: 1.709 MB / 0.6717 GB, free: 7.59 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2453/0.8445, allocations: 7.434 MB / 0.679 GB, free: 133.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.149e-05/0.8447, allocations: 49.03 kB / 0.679 GB, free: 133.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 7.814e-06/0.8447, allocations: 1.719 kB / 0.679 GB, free: 133.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=188): time 0.05931/0.904, allocations: 19.93 MB / 0.6985 GB, free: 127.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.57e-05/0.9041, allocations: 205.8 kB / 0.6987 GB, free: 127.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00639/0.9105, allocations: 3.718 MB / 0.7023 GB, free: 126.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000456/0.911, allocations: 54.03 kB / 0.7024 GB, free: 126.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002039/0.9131, allocations: 2.811 MB / 0.7051 GB, free: 124.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009409/0.914, allocations: 0.709 MB / 0.7058 GB, free: 123.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.9143, allocations: 121.8 kB / 0.7059 GB, free: 123.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003274/0.9146, allocations: 0.5522 MB / 0.7065 GB, free: 123.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003814/0.9185, allocations: 2.185 MB / 0.7086 GB, free: 122.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005356/0.9238, allocations: 5.743 MB / 0.7142 GB, free: 116.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008919/0.9328, allocations: 8.564 MB / 0.7226 GB, free: 109.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/0.9329, allocations: 34.88 kB / 0.7226 GB, free: 109.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01759/0.9505, allocations: 9.167 MB / 0.7316 GB, free: 104.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.9507, allocations: 63.94 kB / 0.7316 GB, free: 104.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00016/0.9509, allocations: 127.9 kB / 0.7317 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00543/0.9563, allocations: 1.679 MB / 0.7334 GB, free: 103.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004201/0.9605, allocations: 1.325 MB / 0.7347 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.9719, allocations: 9.308 MB / 0.7438 GB, free: 92.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004641/0.9766, allocations: 313.6 kB / 0.7441 GB, free: 92.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008862/0.9775, allocations: 367.8 kB / 0.7444 GB, free: 91.77 MB / 490.7 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 (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.002906/0.9804, allocations: 1.896 MB / 0.7463 GB, free: 89.86 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006776/0.9811, allocations: 323.8 kB / 0.7466 GB, free: 89.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007882/0.989, allocations: 4.165 MB / 0.7506 GB, free: 85.37 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.216e-05/0.9891, allocations: 20 kB / 0.7507 GB, free: 85.35 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.271e-05/0.9891, allocations: 11.98 kB / 0.7507 GB, free: 85.34 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.492e-05/0.9892, allocations: 11.97 kB / 0.7507 GB, free: 85.32 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/1.005, allocations: 8.57 MB / 0.759 GB, free: 76.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/1.005, allocations: 0 / 0.759 GB, free: 76.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/1.006, allocations: 247.6 kB / 0.7593 GB, free: 76.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004685/1.011, allocations: 1.467 MB / 0.7607 GB, free: 75.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002171/1.011, allocations: 35.98 kB / 0.7608 GB, free: 75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01029/1.021, allocations: 8.6 MB / 0.7691 GB, free: 66.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.022, allocations: 3.938 kB / 0.7692 GB, free: 66.26 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/1.032, allocations: 6.743 MB / 0.7757 GB, free: 59.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009565/1.033, allocations: 380.6 kB / 0.7761 GB, free: 59.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004057/1.033, allocations: 29.23 kB / 0.7761 GB, free: 59.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/1.035, allocations: 100.5 kB / 0.7762 GB, free: 58.98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/1.035, allocations: 105.2 kB / 0.7763 GB, free: 58.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/1.035, allocations: 52.53 kB / 0.7764 GB, free: 58.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002726/1.038, allocations: 2.3 MB / 0.7786 GB, free: 56.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.038, allocations: 7.938 kB / 0.7786 GB, free: 56.53 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004566/1.042, allocations: 1.007 MB / 0.7796 GB, free: 55.53 MB / 490.7 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 (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.0004068/1.043, allocations: 172.7 kB / 0.7798 GB, free: 55.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006939/1.05, allocations: 5.375 MB / 0.785 GB, free: 50 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.05, allocations: 0 / 0.785 GB, free: 50 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002033/1.052, allocations: 1.803 MB / 0.7868 GB, free: 48.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002744/1.055, allocations: 369.5 kB / 0.7871 GB, free: 47.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/1.067, allocations: 10.38 MB / 0.7973 GB, free: 37.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002338/1.07, allocations: 2.954 MB / 0.8002 GB, free: 34.42 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009984/1.071, allocations: 271.4 kB / 0.8004 GB, free: 34.15 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/1.071, allocations: 0 / 0.8004 GB, free: 34.15 MB / 490.7 MB Notification: Performance of Templates: time 0.09109/1.162, allocations: 68.65 MB / 0.8675 GB, free: 13.5 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches