Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_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.001536/0.001536, allocations: 101.1 kB / 16.26 MB, free: 5.93 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.001881/0.001881, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.341/1.341, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2058/0.2058, allocations: 43.51 MB / 313.9 MB, free: 0.5195 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 66.47 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08822/0.08973, allocations: 57.8 MB / 440.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01077/0.1006, allocations: 11.43 MB / 452.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009833/0.1104, allocations: 4.054 MB / 456.1 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003038/0.1135, allocations: 67.81 kB / 456.2 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005096/0.1186, allocations: 2.495 MB / 458.7 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004956/0.1237, allocations: 1.875 MB / 460.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.1254, allocations: 0.78 MB / 461.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005601/0.131, allocations: 4.457 MB / 465.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004168/0.1352, allocations: 3.335 MB / 469.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002476/0.1377, allocations: 1.577 MB / 470.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.1407, allocations: 2.235 MB / 472.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007657/0.1415, allocations: 332 kB / 473.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001979/0.1435, allocations: 0.9753 MB / 474.2 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001976/0.1455, allocations: 1.94 MB / 476.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003088/0.1486, allocations: 2.272 MB / 478.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007325/0.1559, allocations: 6.666 MB / 485.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.156, allocations: 4 kB / 485.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.156, allocations: 0 / 485.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002207/0.1562, allocations: 0 / 485.1 MB, free: 10.1 MB / 366.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.009457/0.1657, allocations: 4.873 MB / 490 MB, free: 5.156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.1658, allocations: 15.89 kB / 490 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000953/0.1667, allocations: 0.728 MB / 490.7 MB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007443/0.1742, allocations: 1.968 MB / 492.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006756/0.181, allocations: 3.235 MB / 495.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.1812, allocations: 262.2 kB / 496.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008064/0.182, allocations: 331.8 kB / 496.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01988/0.2019, allocations: 10.19 MB / 0.4948 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.2021, allocations: 55.45 kB / 0.4949 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006125/0.2027, allocations: 159.9 kB / 0.495 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003115/0.2058, allocations: 1.904 MB / 0.4969 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01713/0.223, allocations: 8.15 MB / 0.5049 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2193/0.4424, allocations: 39.43 MB / 0.5434 GB, free: 58.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007682/0.4501, allocations: 3.269 MB / 0.5466 GB, free: 57.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.4515, allocations: 1.055 MB / 0.5476 GB, free: 57.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007461/0.4589, allocations: 5.912 MB / 0.5534 GB, free: 54.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.459, allocations: 47.91 kB / 0.5534 GB, free: 54.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.557e-06/0.459, allocations: 3.719 kB / 0.5534 GB, free: 54.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02021/0.4792, allocations: 9.57 MB / 0.5628 GB, free: 50.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.4793, allocations: 151 kB / 0.5629 GB, free: 50.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004307/0.4836, allocations: 4.085 MB / 0.5669 GB, free: 48.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.4838, allocations: 53.48 kB / 0.5669 GB, free: 48.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.4851, allocations: 3.184 MB / 0.57 GB, free: 45.97 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003899/0.4855, allocations: 0.6359 MB / 0.5707 GB, free: 45.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001002/0.4865, allocations: 1.204 MB / 0.5718 GB, free: 44.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.838e-05/0.4865, allocations: 301.1 kB / 0.5721 GB, free: 44.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/0.4884, allocations: 1.639 MB / 0.5737 GB, free: 43.69 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003011/0.4914, allocations: 5.498 MB / 0.5791 GB, free: 37.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00584/0.4973, allocations: 7.764 MB / 0.5867 GB, free: 27.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.009e-05/0.4974, allocations: 42.25 kB / 0.5867 GB, free: 27.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.009467/0.5069, allocations: 6.869 MB / 0.5934 GB, free: 20.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.269e-05/0.507, allocations: 64 kB / 0.5935 GB, free: 20.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001078/0.5071, allocations: 136 kB / 0.5936 GB, free: 20.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001204/0.5072, allocations: 185.9 kB / 0.5938 GB, free: 20.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003563/0.5108, allocations: 1.419 MB / 0.5952 GB, free: 19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001263/0.5109, allocations: 270.9 kB / 0.5954 GB, free: 18.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003363/0.5143, allocations: 289.4 kB / 0.5957 GB, free: 18.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003369/0.5147, allocations: 376 kB / 0.5961 GB, free: 18.09 MB / 414.1 MB 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.002289/0.517, allocations: 2.044 MB / 0.5981 GB, free: 16.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005094/0.5175, allocations: 351.4 kB / 0.5984 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.5192, allocations: 1.349 MB / 0.5997 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/0.5192, allocations: 16 kB / 0.5997 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.5192, allocations: 4 kB / 0.5997 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.5193, allocations: 7.969 kB / 0.5998 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007457/0.5267, allocations: 5.832 MB / 0.6054 GB, free: 8.195 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/0.5268, allocations: 20 kB / 0.6055 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009037/0.5277, allocations: 279.5 kB / 0.6057 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.202e-05/0.5277, allocations: 27.94 kB / 0.6058 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.289e-05/0.5278, allocations: 48 kB / 0.6058 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-05/0.5278, allocations: 41.11 kB / 0.6058 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/0.5278, allocations: 23.88 kB / 0.6059 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.531, allocations: 3.276 MB / 0.6091 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008992/0.532, allocations: 0.5237 MB / 0.6096 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003138/0.5323, allocations: 51.98 kB / 0.6096 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.5333, allocations: 67.62 kB / 0.6097 GB, free: 3.578 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.5335, allocations: 151.4 kB / 0.6098 GB, free: 3.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.395e-05/0.5335, allocations: 71.94 kB / 0.6099 GB, free: 3.359 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003013/0.5366, allocations: 2.536 MB / 0.6124 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5366, allocations: 0 / 0.6124 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004003/0.5406, allocations: 0.9004 MB / 0.6133 GB, free: 15.91 MB / 430.1 MB 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.004134/0.5447, allocations: 3.954 MB / 0.6171 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005855/0.5506, allocations: 3.948 MB / 0.621 GB, free: 7.82 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/0.5506, allocations: 4.812 kB / 0.621 GB, free: 7.816 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009463/0.5516, allocations: 0.7521 MB / 0.6217 GB, free: 7.066 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.5542, allocations: 473.7 kB / 0.6222 GB, free: 6.621 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06458/0.6188, allocations: 47.56 MB / 0.6686 GB, free: 14.63 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003595/0.6224, allocations: 3.182 MB / 0.6717 GB, free: 11.43 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004438/0.6269, allocations: 1.812 MB / 0.6735 GB, free: 9.605 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002379/0.6293, allocations: 1.878 MB / 0.6753 GB, free: 7.727 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6293, allocations: 0 / 0.6753 GB, free: 7.727 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3091/0.9384, allocations: 62.96 MB / 0.7368 GB, free: 194.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.762/10.7, allocations: 3.75 kB / 0.7368 GB, free: 194.7 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches