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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.00126/0.00126, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2063/0.2063, allocations: 44.19 MB / 336.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 64.14 kB / 470.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3215, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01092/0.3324, allocations: 10.38 MB / 0.5286 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008252/0.3407, allocations: 3.859 MB / 0.5323 GB, free: 9.191 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001784/0.3426, allocations: 60.59 kB / 0.5324 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004138/0.3468, allocations: 2.069 MB / 0.5344 GB, free: 7.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004817/0.3516, allocations: 1.708 MB / 0.5361 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.3535, allocations: 0.7037 MB / 0.5368 GB, free: 6.105 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006889/0.3604, allocations: 3.967 MB / 0.5406 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004487/0.3649, allocations: 2.608 MB / 0.5432 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002975/0.3679, allocations: 1.321 MB / 0.5445 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003264/0.3712, allocations: 1.838 MB / 0.5463 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007464/0.372, allocations: 268 kB / 0.5465 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002461/0.3744, allocations: 1.19 MB / 0.5477 GB, free: 14.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001979/0.3764, allocations: 1.656 MB / 0.5493 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002733/0.3792, allocations: 1.965 MB / 0.5512 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008213/0.3874, allocations: 6.4 MB / 0.5575 GB, free: 4.008 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3875, allocations: 0 / 0.5575 GB, free: 4.008 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3875, allocations: 0 / 0.5575 GB, free: 4.008 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001549/0.3876, allocations: 4 kB / 0.5575 GB, free: 4.004 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.01059/0.3982, allocations: 4.464 MB / 0.5618 GB, free: 15.46 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.3983, allocations: 8.031 kB / 0.5619 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009554/0.3993, allocations: 0.6249 MB / 0.5625 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08901/0.4883, allocations: 7.052 MB / 0.5694 GB, free: 7.758 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005964/0.4943, allocations: 2.739 MB / 0.572 GB, free: 4.957 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.4945, allocations: 197.3 kB / 0.5722 GB, free: 4.762 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006697/0.4952, allocations: 271.8 kB / 0.5725 GB, free: 4.496 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/0.5093, allocations: 8.513 MB / 0.5808 GB, free: 11.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/0.5095, allocations: 51.64 kB / 0.5808 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003357/0.5098, allocations: 119.9 kB / 0.5809 GB, free: 11.19 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002884/0.5127, allocations: 1.743 MB / 0.5827 GB, free: 9.445 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01439/0.5271, allocations: 7.151 MB / 0.5896 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04037/0.5676, allocations: 33.87 MB / 0.6227 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008559/0.5762, allocations: 3.42 MB / 0.6261 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/0.5785, allocations: 1.651 MB / 0.6277 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/0.5897, allocations: 7.226 MB / 0.6347 GB, free: 2.602 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.835e-05/0.5898, allocations: 55.5 kB / 0.6348 GB, free: 2.539 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 4.759e-06/0.5899, allocations: 0 / 0.6348 GB, free: 2.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06285/0.6527, allocations: 19.22 MB / 0.6535 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/0.6529, allocations: 201.2 kB / 0.6537 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005392/0.6583, allocations: 3.757 MB / 0.6574 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003236/0.6587, allocations: 57.7 kB / 0.6575 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002291/0.661, allocations: 2.937 MB / 0.6603 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009233/0.6619, allocations: 0.7442 MB / 0.661 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001652/0.6636, allocations: 1.175 MB / 0.6622 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.6637, allocations: 301.1 kB / 0.6625 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003088/0.6668, allocations: 2.088 MB / 0.6645 GB, free: 3.848 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005916/0.6727, allocations: 5.648 MB / 0.67 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/0.6834, allocations: 8.402 MB / 0.6782 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.249e-05/0.6835, allocations: 36 kB / 0.6783 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01722/0.7008, allocations: 8.71 MB / 0.6868 GB, free: 9.512 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.978e-05/0.7009, allocations: 64.22 kB / 0.6868 GB, free: 9.449 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001462/0.7011, allocations: 124 kB / 0.687 GB, free: 9.328 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005012/0.7061, allocations: 1.391 MB / 0.6883 GB, free: 7.934 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004052/0.7102, allocations: 1.294 MB / 0.6896 GB, free: 6.637 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01423/0.7244, allocations: 9.197 MB / 0.6986 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004192/0.7286, allocations: 299.6 kB / 0.6989 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009032/0.7296, allocations: 360 kB / 0.6992 GB, free: 12.65 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 (695): * Single equations (assignments): 691 * 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,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003212/0.7328, allocations: 1.885 MB / 0.701 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006953/0.7335, allocations: 353.6 kB / 0.7014 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008802/0.7423, allocations: 3.778 MB / 0.7051 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-05/0.7424, allocations: 20 kB / 0.7051 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/0.7424, allocations: 12 kB / 0.7051 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.992e-05/0.7425, allocations: 7.969 kB / 0.7051 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01726/0.7597, allocations: 8.148 MB / 0.7131 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/0.7598, allocations: 0 / 0.7131 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/0.7612, allocations: 251.6 kB / 0.7133 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00488/0.7661, allocations: 1.183 MB / 0.7145 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003633/0.7665, allocations: 32 kB / 0.7145 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01333/0.7798, allocations: 8.467 MB / 0.7228 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7799, allocations: 0 / 0.7228 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2573/1.037, allocations: 6.276 MB / 0.7289 GB, free: 181.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007718/1.038, allocations: 393.6 kB / 0.7293 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003799/1.038, allocations: 29.72 kB / 0.7293 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/1.04, allocations: 81.52 kB / 0.7294 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003297/1.04, allocations: 113.1 kB / 0.7295 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/1.04, allocations: 51.77 kB / 0.7295 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003382/1.044, allocations: 2.335 MB / 0.7318 GB, free: 181 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.21e-07/1.044, allocations: 0 / 0.7318 GB, free: 181 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00424/1.048, allocations: 0.9717 MB / 0.7328 GB, free: 180.9 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.01072/1.059, allocations: 6.989 MB / 0.7396 GB, free: 178.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007419/1.066, allocations: 5.208 MB / 0.7447 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.066, allocations: 3.938 kB / 0.7447 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002052/1.068, allocations: 1.748 MB / 0.7464 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002233/1.07, allocations: 404.5 kB / 0.7468 GB, free: 175.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04887/1.119, allocations: 44.3 MB / 0.79 GB, free: 134.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002425/1.122, allocations: 2.957 MB / 0.7929 GB, free: 131.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003179/1.125, allocations: 1.815 MB / 0.7947 GB, free: 130 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001725/1.127, allocations: 1.651 MB / 0.7963 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of SimCode: time 7.32e-07/1.127, allocations: 0 / 0.7963 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/1.227, allocations: 67.08 MB / 0.8618 GB, free: 61.73 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.36/28.58, allocations: 7.844 kB / 0.8618 GB, free: 61.73 MB / 0.5762 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.csv","/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