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) 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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001357, allocations: 114.2 kB / 17.06 MB, free: 5.996 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: 193.4 kB / 18 MB, free: 5.074 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 47.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2503, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01202/0.2624, allocations: 10.71 MB / 411 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007665/0.2701, allocations: 3.872 MB / 414.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.2713, allocations: 63.81 kB / 414.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004165/0.2755, allocations: 2.231 MB / 417.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004568/0.2801, allocations: 1.829 MB / 418.9 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.2816, allocations: 0.7058 MB / 419.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006237/0.2879, allocations: 4.238 MB / 423.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00362/0.2915, allocations: 2.9 MB / 426.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001994/0.2935, allocations: 1.472 MB / 428.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002616/0.2962, allocations: 2.091 MB / 430.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005972/0.2968, allocations: 292 kB / 430.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.2987, allocations: 0.944 MB / 431.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001698/0.3004, allocations: 1.804 MB / 433.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002157/0.3025, allocations: 2.105 MB / 435.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007358/0.3099, allocations: 6.465 MB / 442 MB, free: 14.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3099, allocations: 0 / 442 MB, free: 14.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.31, allocations: 0 / 442 MB, free: 14.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001417/0.3101, allocations: 0 / 442 MB, free: 14.9 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.009147/0.3193, allocations: 4.751 MB / 446.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3193, allocations: 8.031 kB / 446.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009531/0.3203, allocations: 0.6912 MB / 447.4 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00746/0.3277, allocations: 1.975 MB / 449.4 MB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005254/0.333, allocations: 2.902 MB / 452.3 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/0.3332, allocations: 229.6 kB / 452.5 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006329/0.3339, allocations: 291.8 kB / 452.8 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01602/0.3499, allocations: 9.639 MB / 462.4 MB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/0.3501, allocations: 51.62 kB / 462.5 MB, free: 9.457 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007112/0.3508, allocations: 139.9 kB / 462.6 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0031/0.3539, allocations: 1.927 MB / 464.5 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01518/0.3691, allocations: 7.629 MB / 472.2 MB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04419/0.4134, allocations: 37.68 MB / 0.4979 GB, free: 8.895 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00682/0.4202, allocations: 2.885 MB / 0.5007 GB, free: 5.867 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001335/0.4216, allocations: 0.8765 MB / 0.5016 GB, free: 4.977 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006053/0.4277, allocations: 3.768 MB / 0.5053 GB, free: 1.008 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.4277, allocations: 47.16 kB / 0.5053 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 4.097e-06/0.4277, allocations: 4 kB / 0.5053 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02132/0.4491, allocations: 9.249 MB / 0.5143 GB, free: 7.598 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.52e-05/0.4492, allocations: 145.5 kB / 0.5145 GB, free: 7.426 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005343/0.4546, allocations: 3.942 MB / 0.5183 GB, free: 3.504 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.4547, allocations: 49.7 kB / 0.5184 GB, free: 3.449 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002471/0.4572, allocations: 3.217 MB / 0.5215 GB, free: 208 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006406/0.4578, allocations: 0.6322 MB / 0.5221 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001418/0.4593, allocations: 1.163 MB / 0.5233 GB, free: 14.39 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.4594, allocations: 309.1 kB / 0.5236 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002476/0.4619, allocations: 1.561 MB / 0.5251 GB, free: 12.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005514/0.4674, allocations: 5.338 MB / 0.5303 GB, free: 5.285 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2246/0.6921, allocations: 7.515 MB / 0.5376 GB, free: 122 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001413/0.6922, allocations: 38.72 kB / 0.5377 GB, free: 122 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01033/0.7026, allocations: 6.631 MB / 0.5442 GB, free: 119.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.846e-05/0.7027, allocations: 62.38 kB / 0.5442 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/0.7028, allocations: 135.2 kB / 0.5443 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/0.7029, allocations: 177.2 kB / 0.5445 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003333/0.7063, allocations: 1.372 MB / 0.5459 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001362/0.7064, allocations: 260.4 kB / 0.5461 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003225/0.7097, allocations: 287.4 kB / 0.5464 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003383/0.71, allocations: 362 kB / 0.5467 GB, free: 119.6 MB / 462.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.002118/0.7121, allocations: 1.98 MB / 0.5487 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000428/0.7126, allocations: 360.6 kB / 0.549 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.7142, allocations: 1.245 MB / 0.5502 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/0.7143, allocations: 15.75 kB / 0.5502 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.7143, allocations: 3.562 kB / 0.5502 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.7143, allocations: 15.58 kB / 0.5502 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006555/0.7209, allocations: 5.746 MB / 0.5559 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/0.7209, allocations: 20 kB / 0.5559 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008257/0.7218, allocations: 280.4 kB / 0.5561 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.756e-05/0.7218, allocations: 24.88 kB / 0.5562 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.695e-05/0.7219, allocations: 57.58 kB / 0.5562 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.771e-05/0.7219, allocations: 35.86 kB / 0.5563 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.128e-05/0.7219, allocations: 27.88 kB / 0.5563 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/0.7245, allocations: 3.243 MB / 0.5595 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006194/0.7252, allocations: 429.4 kB / 0.5599 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002858/0.7254, allocations: 47.38 kB / 0.5599 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009834/0.7264, allocations: 60.81 kB / 0.56 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.7266, allocations: 145.6 kB / 0.5601 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-05/0.7267, allocations: 75.33 kB / 0.5602 GB, free: 110.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002907/0.7296, allocations: 2.44 MB / 0.5626 GB, free: 108.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.7296, allocations: 0 / 0.5626 GB, free: 108.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003931/0.7335, allocations: 0.8638 MB / 0.5634 GB, free: 107.7 MB / 462.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.003091/0.7366, allocations: 3.913 MB / 0.5672 GB, free: 103.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004851/0.7415, allocations: 3.67 MB / 0.5708 GB, free: 99.98 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/0.7415, allocations: 4.062 kB / 0.5708 GB, free: 99.98 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007496/0.7423, allocations: 0.7244 MB / 0.5715 GB, free: 99.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00256/0.7449, allocations: 452.1 kB / 0.572 GB, free: 98.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0435/0.7884, allocations: 40.38 MB / 0.6114 GB, free: 52.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002954/0.7914, allocations: 3.097 MB / 0.6144 GB, free: 49.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003124/0.7945, allocations: 1.764 MB / 0.6161 GB, free: 47.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001639/0.7962, allocations: 1.796 MB / 0.6179 GB, free: 45.48 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7962, allocations: 3.938 kB / 0.6179 GB, free: 45.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08967/0.8858, allocations: 56.11 MB / 0.6727 GB, free: 5.812 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.01/18.9, allocations: 12.06 kB / 0.6727 GB, free: 5.801 MB / 478.1 MB (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.002 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) 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) Reference file matches