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.001307/0.001307, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.00142/0.00142, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.315/1.315, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.1973/0.1973, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 63.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3282, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01129/0.3395, allocations: 10.38 MB / 0.5286 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008894/0.3485, allocations: 3.86 MB / 0.5323 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002205/0.3507, allocations: 61.38 kB / 0.5324 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004356/0.3551, allocations: 2.065 MB / 0.5344 GB, free: 7.773 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005005/0.3602, allocations: 1.747 MB / 0.5361 GB, free: 6.547 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.362, allocations: 0.7003 MB / 0.5368 GB, free: 6.074 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00611/0.3681, allocations: 3.98 MB / 0.5407 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003608/0.3718, allocations: 2.599 MB / 0.5432 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002601/0.3744, allocations: 1.314 MB / 0.5445 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002721/0.3771, allocations: 1.85 MB / 0.5463 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007691/0.3779, allocations: 264 kB / 0.5466 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002333/0.3803, allocations: 1.198 MB / 0.5477 GB, free: 14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001759/0.3821, allocations: 1.679 MB / 0.5494 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002475/0.3846, allocations: 1.969 MB / 0.5513 GB, free: 10.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007584/0.3922, allocations: 6.401 MB / 0.5575 GB, free: 3.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3922, allocations: 0 / 0.5575 GB, free: 3.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3922, allocations: 4 kB / 0.5575 GB, free: 3.906 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001762/0.3924, allocations: 0 / 0.5575 GB, free: 3.906 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.01095/0.4034, allocations: 4.467 MB / 0.5619 GB, free: 15.37 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.4034, allocations: 8.031 kB / 0.5619 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001123/0.4046, allocations: 0.621 MB / 0.5625 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0902/0.4948, allocations: 7.063 MB / 0.5694 GB, free: 7.652 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006339/0.5011, allocations: 2.746 MB / 0.5721 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.5013, allocations: 197.3 kB / 0.5723 GB, free: 4.648 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001198/0.5025, allocations: 267.8 kB / 0.5725 GB, free: 4.387 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01344/0.516, allocations: 8.517 MB / 0.5809 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.5161, allocations: 47.59 kB / 0.5809 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00038/0.5165, allocations: 123.9 kB / 0.581 GB, free: 11.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002787/0.5193, allocations: 1.739 MB / 0.5827 GB, free: 9.336 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01276/0.5321, allocations: 7.151 MB / 0.5897 GB, free: 2.176 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0384/0.5705, allocations: 33.87 MB / 0.6228 GB, free: 15.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008896/0.5795, allocations: 3.419 MB / 0.6261 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002495/0.582, allocations: 1.647 MB / 0.6277 GB, free: 10 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.5935, allocations: 7.226 MB / 0.6348 GB, free: 2.508 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.5936, allocations: 55.48 kB / 0.6348 GB, free: 2.445 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 3.657e-06/0.5936, allocations: 4 kB / 0.6348 GB, free: 2.441 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06335/0.6569, allocations: 19.22 MB / 0.6536 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.6571, allocations: 209.2 kB / 0.6538 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0049/0.662, allocations: 3.749 MB / 0.6575 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002841/0.6623, allocations: 61.62 kB / 0.6575 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001802/0.6641, allocations: 2.937 MB / 0.6604 GB, free: 8.07 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007618/0.6649, allocations: 0.7404 MB / 0.6611 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001468/0.6663, allocations: 1.175 MB / 0.6623 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.095e-05/0.6664, allocations: 301.1 kB / 0.6626 GB, free: 5.84 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002954/0.6694, allocations: 2.092 MB / 0.6646 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005279/0.6747, allocations: 5.644 MB / 0.6701 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009296/0.684, allocations: 8.407 MB / 0.6783 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.139e-05/0.6842, allocations: 40 kB / 0.6784 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01695/0.7011, allocations: 8.696 MB / 0.6869 GB, free: 9.418 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.676e-05/0.7012, allocations: 60 kB / 0.6869 GB, free: 9.359 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/0.7014, allocations: 128 kB / 0.687 GB, free: 9.234 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004985/0.7064, allocations: 1.391 MB / 0.6884 GB, free: 7.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004258/0.7107, allocations: 1.294 MB / 0.6897 GB, free: 6.543 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01346/0.7241, allocations: 9.201 MB / 0.6986 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004298/0.7285, allocations: 299.6 kB / 0.6989 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000796/0.7293, allocations: 356 kB / 0.6993 GB, free: 12.55 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.003162/0.7325, allocations: 1.888 MB / 0.7011 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007453/0.7332, allocations: 361.5 kB / 0.7015 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008515/0.7418, allocations: 3.763 MB / 0.7051 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.002e-05/0.7419, allocations: 20 kB / 0.7051 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/0.7419, allocations: 12 kB / 0.7052 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.415e-05/0.7419, allocations: 7.969 kB / 0.7052 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/0.7588, allocations: 8.156 MB / 0.7131 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.7588, allocations: 4 kB / 0.7131 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.7601, allocations: 255.6 kB / 0.7134 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00456/0.7646, allocations: 1.179 MB / 0.7145 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002097/0.7649, allocations: 31.98 kB / 0.7146 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.7768, allocations: 8.475 MB / 0.7228 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.7769, allocations: 0 / 0.7228 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2247/1.002, allocations: 6.274 MB / 0.729 GB, free: 181.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008448/1.002, allocations: 394 kB / 0.7293 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005183/1.003, allocations: 28.89 kB / 0.7294 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/1.004, allocations: 80.23 kB / 0.7294 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/1.005, allocations: 112.2 kB / 0.7295 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/1.005, allocations: 52 kB / 0.7296 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003533/1.008, allocations: 2.331 MB / 0.7319 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/1.008, allocations: 0 / 0.7319 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004457/1.013, allocations: 0.9687 MB / 0.7328 GB, free: 181 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.01093/1.024, allocations: 6.997 MB / 0.7397 GB, free: 178.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007158/1.031, allocations: 5.207 MB / 0.7447 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/1.031, allocations: 3.281 kB / 0.7447 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002019/1.033, allocations: 1.747 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.002365/1.036, allocations: 404.9 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.05199/1.088, allocations: 44.3 MB / 0.7901 GB, free: 134.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002439/1.09, allocations: 2.961 MB / 0.793 GB, free: 131.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003374/1.093, allocations: 1.811 MB / 0.7948 GB, free: 129.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001737/1.095, allocations: 1.647 MB / 0.7964 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of SimCode: time 6.61e-07/1.095, allocations: 0 / 0.7964 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09444/1.19, allocations: 67.07 MB / 0.8619 GB, free: 61.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.37/26.56, allocations: 7.859 kB / 0.8619 GB, free: 61.59 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