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.001058/0.001058, allocations: 113.4 kB / 17.78 MB, free: 5.27 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.001155/0.001155, allocations: 180.1 kB / 18.71 MB, free: 4.348 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.261/1.261, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.1918/0.1918, allocations: 44.19 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 67.89 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.342, allocations: 60.81 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01075/0.3528, allocations: 10.39 MB / 0.529 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009724/0.3625, allocations: 3.861 MB / 0.5328 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002698/0.3653, allocations: 61.22 kB / 0.5329 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004465/0.3698, allocations: 2.065 MB / 0.5349 GB, free: 7.965 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005416/0.3753, allocations: 1.715 MB / 0.5366 GB, free: 6.758 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00228/0.3776, allocations: 0.6887 MB / 0.5372 GB, free: 6.297 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007187/0.3848, allocations: 3.978 MB / 0.5411 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004581/0.3894, allocations: 2.6 MB / 0.5437 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002953/0.3924, allocations: 1.308 MB / 0.5449 GB, free: 1.316 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003327/0.3957, allocations: 1.85 MB / 0.5467 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001177/0.3969, allocations: 268 kB / 0.547 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00298/0.3999, allocations: 1.198 MB / 0.5482 GB, free: 14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002355/0.4023, allocations: 1.675 MB / 0.5498 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003357/0.4056, allocations: 1.918 MB / 0.5517 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008063/0.4137, allocations: 6.211 MB / 0.5577 GB, free: 4.16 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.4138, allocations: 0 / 0.5577 GB, free: 4.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4138, allocations: 0 / 0.5577 GB, free: 4.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001368/0.4139, allocations: 0 / 0.5577 GB, free: 4.16 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.008081/0.422, allocations: 4.214 MB / 0.5619 GB, free: 15.88 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.422, allocations: 11.97 kB / 0.5619 GB, free: 15.87 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0185/0.4406, allocations: 2.433 MB / 0.5642 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008155/0.4488, allocations: 2.448 MB / 0.5666 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000266/0.4491, allocations: 193.3 kB / 0.5668 GB, free: 10.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001369/0.4505, allocations: 279.9 kB / 0.5671 GB, free: 10.45 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01987/0.4704, allocations: 8.579 MB / 0.5755 GB, free: 1.242 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/0.4706, allocations: 43.66 kB / 0.5755 GB, free: 1.199 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004835/0.4711, allocations: 123.9 kB / 0.5756 GB, free: 1.078 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004006/0.4751, allocations: 1.731 MB / 0.5773 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02094/0.4961, allocations: 7.288 MB / 0.5844 GB, free: 8.051 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04215/0.5383, allocations: 34.02 MB / 0.6177 GB, free: 4.938 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008762/0.5471, allocations: 3.482 MB / 0.6211 GB, free: 1.305 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002375/0.5495, allocations: 1.717 MB / 0.6227 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01139/0.561, allocations: 7.423 MB / 0.63 GB, free: 7.879 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.66e-05/0.5611, allocations: 47.56 kB / 0.63 GB, free: 7.824 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 5.831e-06/0.5611, allocations: 0 / 0.63 GB, free: 7.824 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06129/0.6224, allocations: 19.61 MB / 0.6492 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.6225, allocations: 205.2 kB / 0.6494 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004844/0.6274, allocations: 3.738 MB / 0.653 GB, free: 88 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003606/0.6278, allocations: 57.7 kB / 0.6531 GB, free: 24 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002028/0.6298, allocations: 2.799 MB / 0.6558 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009739/0.6308, allocations: 0.7174 MB / 0.6565 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001569/0.6324, allocations: 1.202 MB / 0.6577 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.6325, allocations: 301.1 kB / 0.658 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003254/0.6357, allocations: 2.214 MB / 0.6601 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005393/0.6411, allocations: 5.762 MB / 0.6658 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009353/0.6505, allocations: 8.589 MB / 0.6742 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.697e-05/0.6506, allocations: 36 kB / 0.6742 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01729/0.6679, allocations: 9.18 MB / 0.6832 GB, free: 13.62 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.137e-05/0.668, allocations: 56 kB / 0.6832 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/0.6682, allocations: 128 kB / 0.6833 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005472/0.6737, allocations: 1.657 MB / 0.6849 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00438/0.6781, allocations: 1.326 MB / 0.6862 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/0.6919, allocations: 9.904 MB / 0.6959 GB, free: 412 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004207/0.6962, allocations: 319.5 kB / 0.6962 GB, free: 92 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005828/0.6968, allocations: 368 kB / 0.6966 GB, free: 15.73 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.00252/0.6993, allocations: 1.885 MB / 0.6984 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005004/0.6998, allocations: 327.8 kB / 0.6987 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008415/0.7082, allocations: 4.137 MB / 0.7028 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.274e-05/0.7083, allocations: 23.94 kB / 0.7028 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/0.7083, allocations: 11.94 kB / 0.7028 GB, free: 9.316 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.062e-05/0.7084, allocations: 7.969 kB / 0.7028 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/0.7242, allocations: 8.518 MB / 0.7111 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/0.7243, allocations: 0 / 0.7111 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.7254, allocations: 251.6 kB / 0.7114 GB, free: 492 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004916/0.7304, allocations: 1.433 MB / 0.7128 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002067/0.7306, allocations: 31.98 kB / 0.7128 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01261/0.7432, allocations: 9.228 MB / 0.7218 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.7432, allocations: 4.031 kB / 0.7218 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2627/1.006, allocations: 6.711 MB / 0.7284 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/1.007, allocations: 373.4 kB / 0.7287 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005751/1.008, allocations: 33.69 kB / 0.7287 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/1.009, allocations: 88.69 kB / 0.7288 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003545/1.009, allocations: 109.8 kB / 0.7289 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/1.01, allocations: 55.52 kB / 0.729 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004116/1.014, allocations: 2.323 MB / 0.7313 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.12e-07/1.014, allocations: 0 / 0.7313 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006508/1.02, allocations: 0.9924 MB / 0.7322 GB, free: 181.7 MB / 0.5762 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.0005513/1.021, allocations: 166.4 kB / 0.7324 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009904/1.031, allocations: 5.415 MB / 0.7377 GB, free: 179.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.031, allocations: 0 / 0.7377 GB, free: 179.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002721/1.033, allocations: 1.81 MB / 0.7394 GB, free: 179 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002842/1.036, allocations: 397.9 kB / 0.7398 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01571/1.052, allocations: 8.52 MB / 0.7481 GB, free: 175.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003568/1.056, allocations: 2.968 MB / 0.751 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003475/1.059, allocations: 1.811 MB / 0.7528 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005999/1.06, allocations: 226.9 kB / 0.753 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2.495e-06/1.06, allocations: 0 / 0.753 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.05835/1.118, allocations: 36.21 MB / 0.7884 GB, free: 142.6 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/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