Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",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.001321/0.001321, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.001363/0.001363, allocations: 185 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.296/1.296, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2005/0.2005, allocations: 44.17 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 59.91 kB / 470.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3253, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01149/0.3368, allocations: 11.39 MB / 0.5296 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.3469, allocations: 4.032 MB / 0.5335 GB, free: 8.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002367/0.3493, allocations: 68.19 kB / 0.5336 GB, free: 8.195 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004793/0.3541, allocations: 2.49 MB / 0.536 GB, free: 6.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004967/0.3591, allocations: 1.915 MB / 0.5379 GB, free: 5.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.361, allocations: 0.7824 MB / 0.5386 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006037/0.367, allocations: 4.434 MB / 0.543 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004351/0.3714, allocations: 3.329 MB / 0.5462 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002748/0.3742, allocations: 1.554 MB / 0.5477 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003171/0.3774, allocations: 2.227 MB / 0.5499 GB, free: 11.79 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.3784, allocations: 332 kB / 0.5502 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002117/0.3805, allocations: 0.987 MB / 0.5512 GB, free: 10.47 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001786/0.3823, allocations: 1.944 MB / 0.5531 GB, free: 8.523 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002531/0.3849, allocations: 2.249 MB / 0.5553 GB, free: 6.262 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007125/0.392, allocations: 6.924 MB / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.392, allocations: 0 / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.392, allocations: 0 / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000146/0.3922, allocations: 0 / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.008356/0.4006, allocations: 4.986 MB / 0.5669 GB, free: 10.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.4006, allocations: 8.031 kB / 0.5669 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008409/0.4015, allocations: 0.728 MB / 0.5676 GB, free: 9.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007524/0.409, allocations: 1.995 MB / 0.5696 GB, free: 7.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005813/0.4148, allocations: 3.005 MB / 0.5725 GB, free: 4.434 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.415, allocations: 254.2 kB / 0.5728 GB, free: 4.184 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000735/0.4158, allocations: 331.8 kB / 0.5731 GB, free: 3.859 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01655/0.4323, allocations: 10.2 MB / 0.583 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001123/0.4325, allocations: 55.5 kB / 0.5831 GB, free: 8.809 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003896/0.4329, allocations: 159.9 kB / 0.5832 GB, free: 8.652 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002708/0.4356, allocations: 1.904 MB / 0.5851 GB, free: 6.746 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01607/0.4517, allocations: 8.142 MB / 0.593 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04515/0.4969, allocations: 39.33 MB / 0.6315 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007816/0.5047, allocations: 3.281 MB / 0.6347 GB, free: 2.625 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.5063, allocations: 1.049 MB / 0.6357 GB, free: 1.555 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008461/0.5148, allocations: 5.907 MB / 0.6415 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/0.5148, allocations: 63.44 kB / 0.6415 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.489e-06/0.5149, allocations: 0 / 0.6415 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.0226/0.5375, allocations: 9.67 MB / 0.651 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.5376, allocations: 196.9 kB / 0.6511 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005674/0.5433, allocations: 4.076 MB / 0.6551 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001993/0.5435, allocations: 49.7 kB / 0.6552 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002039/0.5456, allocations: 3.306 MB / 0.6584 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006759/0.5462, allocations: 0.6708 MB / 0.6591 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.5476, allocations: 1.215 MB / 0.6602 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.886e-05/0.5477, allocations: 301.1 kB / 0.6605 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/0.5501, allocations: 1.644 MB / 0.6621 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004994/0.5551, allocations: 5.498 MB / 0.6675 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008432/0.5636, allocations: 7.759 MB / 0.6751 GB, free: 4.758 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.948e-05/0.5637, allocations: 44.22 kB / 0.6751 GB, free: 4.715 MB / 0.5294 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01062/0.5744, allocations: 6.877 MB / 0.6818 GB, free: 13.82 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.245e-05/0.5745, allocations: 64.09 kB / 0.6819 GB, free: 13.76 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/0.5746, allocations: 139.9 kB / 0.682 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001629/0.5748, allocations: 180 kB / 0.6822 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003985/0.5788, allocations: 1.431 MB / 0.6836 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002025/0.579, allocations: 267 kB / 0.6839 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003906/0.5829, allocations: 291.7 kB / 0.6841 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/0.5833, allocations: 376 kB / 0.6845 GB, free: 11.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (767): * Single equations (assignments): 764 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002767/0.5861, allocations: 2.04 MB / 0.6865 GB, free: 9.047 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005791/0.5867, allocations: 373.5 kB / 0.6868 GB, free: 8.68 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.5887, allocations: 1.337 MB / 0.6881 GB, free: 7.332 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.5887, allocations: 23.91 kB / 0.6882 GB, free: 7.312 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.5887, allocations: 4 kB / 0.6882 GB, free: 7.309 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5888, allocations: 7.922 kB / 0.6882 GB, free: 7.301 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008631/0.5974, allocations: 5.83 MB / 0.6939 GB, free: 1.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-05/0.5974, allocations: 24.03 kB / 0.6939 GB, free: 1.137 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009559/0.5984, allocations: 275.5 kB / 0.6942 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.461e-05/0.5984, allocations: 24 kB / 0.6942 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.67e-05/0.5985, allocations: 51.98 kB / 0.6942 GB, free: 0.793 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.303e-05/0.5986, allocations: 31.88 kB / 0.6943 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.712e-05/0.5986, allocations: 31.86 kB / 0.6943 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003613/0.6022, allocations: 3.308 MB / 0.6975 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008176/0.603, allocations: 430.5 kB / 0.6979 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000336/0.6034, allocations: 47.98 kB / 0.698 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.6045, allocations: 59.97 kB / 0.698 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.6046, allocations: 151.4 kB / 0.6982 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.449e-05/0.6047, allocations: 71.97 kB / 0.6983 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00354/0.6083, allocations: 2.516 MB / 0.7007 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.51e-07/0.6083, allocations: 0 / 0.7007 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004363/0.6127, allocations: 0.9023 MB / 0.7016 GB, free: 8.969 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004021/0.6167, allocations: 3.959 MB / 0.7055 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005905/0.6226, allocations: 3.803 MB / 0.7092 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.494e-05/0.6227, allocations: 1.75 kB / 0.7092 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.6237, allocations: 0.7534 MB / 0.7099 GB, free: 232 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/0.6266, allocations: 469.7 kB / 0.7104 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2866/0.9132, allocations: 41.73 MB / 0.7511 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002662/0.9159, allocations: 3.176 MB / 0.7542 GB, free: 162.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003243/0.9192, allocations: 1.817 MB / 0.756 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001715/0.9209, allocations: 1.864 MB / 0.7578 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of SimCode: time 9.22e-07/0.9209, allocations: 0 / 0.7578 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08967/1.011, allocations: 58.84 MB / 0.8153 GB, free: 103 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.17/19.18, allocations: 15.55 kB / 0.8153 GB, free: 103 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_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_Spring.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches