Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002014/0.002014, allocations: 189.9 kB / 23.7 MB, free: 4.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 47.92 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2682, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02094/0.2892, allocations: 9.385 MB / 432 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0124/0.3016, allocations: 3.684 MB / 435.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.3035, allocations: 75.62 kB / 435.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007464/0.311, allocations: 2.176 MB / 437.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00755/0.3185, allocations: 1.895 MB / 439.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002642/0.3212, allocations: 0.7136 MB / 440.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008606/0.3298, allocations: 4.229 MB / 444.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004798/0.3346, allocations: 2.451 MB / 447.2 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003615/0.3382, allocations: 1.499 MB / 448.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0051/0.3433, allocations: 2.149 MB / 450.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001124/0.3444, allocations: 292 kB / 451.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003139/0.3476, allocations: 0.8426 MB / 452 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003233/0.3508, allocations: 1.87 MB / 453.8 MB, free: 15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00347/0.3543, allocations: 1.565 MB / 455.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.3665, allocations: 6.489 MB / 461.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.3665, allocations: 0 / 461.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3666, allocations: 3.938 kB / 461.9 MB, free: 6.906 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002202/0.3668, allocations: 0 / 461.9 MB, free: 6.906 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01661/0.3834, allocations: 4.675 MB / 466.6 MB, free: 2.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.3834, allocations: 8.031 kB / 466.6 MB, free: 2.168 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001647/0.3851, allocations: 0.699 MB / 467.3 MB, free: 1.457 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007838/0.3929, allocations: 1.971 MB / 469.2 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006073/0.399, allocations: 2.842 MB / 472.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/0.3992, allocations: 229.6 kB / 472.3 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007402/0.4, allocations: 291.8 kB / 472.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01772/0.4177, allocations: 9.676 MB / 482.3 MB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001473/0.4178, allocations: 47.58 kB / 482.3 MB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000656/0.4185, allocations: 143.8 kB / 482.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003139/0.4216, allocations: 1.919 MB / 484.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01577/0.4374, allocations: 7.613 MB / 492 MB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04576/0.4832, allocations: 36.25 MB / 0.5159 GB, free: 2.457 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006752/0.4899, allocations: 2.317 MB / 0.5181 GB, free: 100 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.4913, allocations: 0.796 MB / 0.5189 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006182/0.4975, allocations: 2.871 MB / 0.5217 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.4975, allocations: 51.16 kB / 0.5218 GB, free: 12.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.859e-06/0.4975, allocations: 3.938 kB / 0.5218 GB, free: 12.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02271/0.5203, allocations: 9.101 MB / 0.5306 GB, free: 3.176 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.5204, allocations: 145.5 kB / 0.5308 GB, free: 3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1912/0.7115, allocations: 4.157 MB / 0.5348 GB, free: 107.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000227/0.7118, allocations: 45.11 kB / 0.5349 GB, free: 107.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002153/0.7139, allocations: 3.218 MB / 0.538 GB, free: 106.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005641/0.7145, allocations: 0.63 MB / 0.5386 GB, free: 105.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001318/0.7158, allocations: 1.169 MB / 0.5398 GB, free: 105.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.7158, allocations: 305.8 kB / 0.5401 GB, free: 104.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00222/0.7181, allocations: 1.565 MB / 0.5416 GB, free: 104.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003181/0.7212, allocations: 5.338 MB / 0.5468 GB, free: 98.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0054/0.7266, allocations: 7.517 MB / 0.5542 GB, free: 92.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-05/0.7267, allocations: 39.19 kB / 0.5542 GB, free: 92.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008017/0.7347, allocations: 6.624 MB / 0.5607 GB, free: 88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.211e-05/0.7348, allocations: 68.94 kB / 0.5607 GB, free: 87.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000104/0.7349, allocations: 138.3 kB / 0.5609 GB, free: 87.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001195/0.735, allocations: 180 kB / 0.561 GB, free: 87.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003283/0.7383, allocations: 1.372 MB / 0.5624 GB, free: 86.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001226/0.7384, allocations: 268.2 kB / 0.5626 GB, free: 86.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003473/0.7419, allocations: 282.8 kB / 0.5629 GB, free: 85.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000335/0.7422, allocations: 360 kB / 0.5632 GB, free: 85.57 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * 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.002009/0.7442, allocations: 1.977 MB / 0.5652 GB, free: 83.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004667/0.7447, allocations: 353.6 kB / 0.5655 GB, free: 83.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.7463, allocations: 1.25 MB / 0.5667 GB, free: 82.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/0.7463, allocations: 16 kB / 0.5668 GB, free: 82.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.168e-06/0.7463, allocations: 4 kB / 0.5668 GB, free: 82.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.7463, allocations: 7.938 kB / 0.5668 GB, free: 82.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00643/0.7528, allocations: 5.427 MB / 0.5721 GB, free: 76.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/0.7528, allocations: 20 kB / 0.5721 GB, free: 76.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008028/0.7536, allocations: 280.4 kB / 0.5724 GB, free: 76.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.648e-05/0.7536, allocations: 28 kB / 0.5724 GB, free: 76.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.474e-05/0.7537, allocations: 47.98 kB / 0.5724 GB, free: 76.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.554e-05/0.7537, allocations: 39.86 kB / 0.5725 GB, free: 76.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.859e-06/0.7537, allocations: 27.88 kB / 0.5725 GB, free: 76.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002612/0.7563, allocations: 3.24 MB / 0.5757 GB, free: 72.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007765/0.7571, allocations: 349.5 kB / 0.576 GB, free: 72.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003089/0.7574, allocations: 63.11 kB / 0.576 GB, free: 72.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.7584, allocations: 51.97 kB / 0.5761 GB, free: 72.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.7585, allocations: 155.3 kB / 0.5762 GB, free: 72.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.025e-05/0.7586, allocations: 64 kB / 0.5763 GB, free: 72.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002537/0.7612, allocations: 2.447 MB / 0.5787 GB, free: 69.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7612, allocations: 0 / 0.5787 GB, free: 69.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004342/0.7655, allocations: 0.859 MB / 0.5795 GB, free: 68.99 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * 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.003212/0.7687, allocations: 3.913 MB / 0.5834 GB, free: 64.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004679/0.7734, allocations: 3.524 MB / 0.5868 GB, free: 61.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.837e-05/0.7734, allocations: 7.938 kB / 0.5868 GB, free: 61.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007654/0.7742, allocations: 0.6878 MB / 0.5875 GB, free: 60.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002945/0.7771, allocations: 451 kB / 0.5879 GB, free: 60.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04203/0.8191, allocations: 40.39 MB / 0.6273 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002487/0.8216, allocations: 2.557 MB / 0.6298 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003289/0.8249, allocations: 1.768 MB / 0.6316 GB, free: 9.156 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001663/0.8266, allocations: 1.792 MB / 0.6333 GB, free: 7.363 MB / 446.1 MB Notification: Performance of SimCode: time 1.031e-06/0.8266, allocations: 4 kB / 0.6333 GB, free: 7.359 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1474/0.974, allocations: 56 MB / 0.688 GB, free: 168 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.69/16.66, allocations: 11.94 kB / 0.688 GB, free: 156 kB / 494.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.30949846096337]