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.001224/0.001224, allocations: 112.8 kB / 17.77 MB, free: 5.359 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.001227/0.001227, allocations: 184.1 kB / 18.7 MB, free: 4.434 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.423/1.423, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2247/0.2247, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 67.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.343, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01376/0.3568, allocations: 11.39 MB / 0.5296 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009958/0.3668, allocations: 4.032 MB / 0.5335 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002648/0.3695, allocations: 64.53 kB / 0.5336 GB, free: 8.195 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00548/0.375, allocations: 2.491 MB / 0.536 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005802/0.3809, allocations: 1.868 MB / 0.5378 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002043/0.383, allocations: 0.7817 MB / 0.5386 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00721/0.3902, allocations: 4.426 MB / 0.5429 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005503/0.3957, allocations: 3.329 MB / 0.5461 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003311/0.3991, allocations: 1.569 MB / 0.5477 GB, free: 14.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004004/0.4031, allocations: 2.22 MB / 0.5498 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001341/0.4045, allocations: 336 kB / 0.5502 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/0.4077, allocations: 0.9793 MB / 0.5511 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003615/0.4114, allocations: 1.932 MB / 0.553 GB, free: 8.578 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006087/0.4175, allocations: 2.256 MB / 0.5552 GB, free: 6.309 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01315/0.4307, allocations: 6.918 MB / 0.562 GB, free: 15.36 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.033e-05/0.4308, allocations: 3.938 kB / 0.562 GB, free: 15.36 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.083e-06/0.4308, allocations: 4 kB / 0.562 GB, free: 15.35 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003574/0.4311, allocations: 0 / 0.562 GB, free: 15.35 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.01161/0.4428, allocations: 4.979 MB / 0.5668 GB, free: 10.3 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.4428, allocations: 8.031 kB / 0.5668 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001025/0.4439, allocations: 0.7358 MB / 0.5676 GB, free: 9.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007552/0.4514, allocations: 1.991 MB / 0.5695 GB, free: 7.547 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005941/0.4574, allocations: 2.997 MB / 0.5724 GB, free: 4.488 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/0.4577, allocations: 258.2 kB / 0.5727 GB, free: 4.234 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008401/0.4585, allocations: 331.8 kB / 0.573 GB, free: 3.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01969/0.4782, allocations: 10.2 MB / 0.583 GB, free: 8.918 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.4784, allocations: 47.64 kB / 0.583 GB, free: 8.871 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004665/0.4789, allocations: 159.8 kB / 0.5832 GB, free: 8.715 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003068/0.4819, allocations: 1.908 MB / 0.585 GB, free: 6.805 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01762/0.4996, allocations: 8.142 MB / 0.593 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05298/0.5526, allocations: 39.33 MB / 0.6314 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008335/0.561, allocations: 3.277 MB / 0.6346 GB, free: 2.688 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001719/0.5627, allocations: 1.056 MB / 0.6356 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008723/0.5715, allocations: 5.911 MB / 0.6414 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.5715, allocations: 51.5 kB / 0.6414 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 3.517e-06/0.5715, allocations: 0 / 0.6414 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02313/0.5947, allocations: 9.682 MB / 0.6509 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.5948, allocations: 192.9 kB / 0.6511 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006108/0.601, allocations: 4.08 MB / 0.6551 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002663/0.6013, allocations: 49.64 kB / 0.6551 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002875/0.6041, allocations: 3.31 MB / 0.6583 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007995/0.605, allocations: 0.663 MB / 0.659 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001585/0.6066, allocations: 1.219 MB / 0.6602 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.6067, allocations: 301.1 kB / 0.6605 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002843/0.6095, allocations: 1.636 MB / 0.6621 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006027/0.6156, allocations: 5.502 MB / 0.6674 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/0.6257, allocations: 7.761 MB / 0.675 GB, free: 4.812 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001167/0.6259, allocations: 40 kB / 0.6751 GB, free: 4.773 MB / 0.5294 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01315/0.639, allocations: 6.88 MB / 0.6818 GB, free: 13.88 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/0.6392, allocations: 71.97 kB / 0.6818 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001683/0.6393, allocations: 140 kB / 0.682 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001927/0.6395, allocations: 180 kB / 0.6821 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004452/0.644, allocations: 1.419 MB / 0.6835 GB, free: 12.08 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002482/0.6443, allocations: 267 kB / 0.6838 GB, free: 11.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003811/0.6481, allocations: 299.7 kB / 0.6841 GB, free: 11.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007207/0.6488, allocations: 372 kB / 0.6844 GB, free: 11.16 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.003375/0.6522, allocations: 2.037 MB / 0.6864 GB, free: 9.113 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006502/0.6529, allocations: 369.5 kB / 0.6868 GB, free: 8.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/0.6552, allocations: 1.352 MB / 0.6881 GB, free: 7.387 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.6553, allocations: 20 kB / 0.6881 GB, free: 7.367 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.6553, allocations: 0 / 0.6881 GB, free: 7.367 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.775e-05/0.6553, allocations: 11.92 kB / 0.6881 GB, free: 7.355 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009678/0.665, allocations: 5.826 MB / 0.6938 GB, free: 1.219 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.849e-05/0.6651, allocations: 20 kB / 0.6938 GB, free: 1.199 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.6661, allocations: 279.5 kB / 0.6941 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3e-05/0.6662, allocations: 24.72 kB / 0.6941 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.925e-05/0.6663, allocations: 48 kB / 0.6942 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.063e-05/0.6663, allocations: 39.86 kB / 0.6942 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-05/0.6663, allocations: 27.88 kB / 0.6942 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004254/0.6706, allocations: 3.308 MB / 0.6975 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008385/0.6714, allocations: 426.5 kB / 0.6979 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003286/0.6718, allocations: 51.98 kB / 0.6979 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.6729, allocations: 59.95 kB / 0.698 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.6731, allocations: 155.4 kB / 0.6981 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.6732, allocations: 64 kB / 0.6982 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004182/0.6774, allocations: 2.52 MB / 0.7006 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.41e-07/0.6774, allocations: 0 / 0.7006 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004557/0.6819, allocations: 0.8945 MB / 0.7015 GB, free: 9.035 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.004938/0.6869, allocations: 3.967 MB / 0.7054 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00718/0.6941, allocations: 3.804 MB / 0.7091 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.189e-05/0.6942, allocations: 7.938 kB / 0.7091 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.6954, allocations: 0.7417 MB / 0.7098 GB, free: 296 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/0.6984, allocations: 469.2 kB / 0.7103 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3129/1.011, allocations: 41.74 MB / 0.751 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002887/1.014, allocations: 3.169 MB / 0.7541 GB, free: 160 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003348/1.018, allocations: 1.817 MB / 0.7559 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001912/1.02, allocations: 1.866 MB / 0.7577 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.222e-06/1.02, allocations: 0 / 0.7577 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09194/1.112, allocations: 58.84 MB / 0.8152 GB, free: 100.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.08/19.19, allocations: 12.67 kB / 0.8152 GB, free: 100.2 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