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.001303/0.001303, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001474/0.001473, allocations: 188 kB / 18 MB, free: 5.102 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.441/1.441, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3453, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01232/0.3576, allocations: 10.7 MB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009534/0.3672, allocations: 3.872 MB / 414.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002579/0.3699, allocations: 63.81 kB / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005139/0.3751, allocations: 2.231 MB / 417.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00574/0.3809, allocations: 1.878 MB / 419 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00216/0.3831, allocations: 0.7136 MB / 419.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007073/0.3902, allocations: 4.229 MB / 423.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005279/0.3955, allocations: 2.908 MB / 426.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003788/0.3994, allocations: 1.479 MB / 428.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004212/0.4036, allocations: 2.083 MB / 430.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00148/0.4052, allocations: 292 kB / 430.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003095/0.4083, allocations: 0.948 MB / 431.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003125/0.4115, allocations: 1.823 MB / 433.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00595/0.4175, allocations: 2.101 MB / 435.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01147/0.429, allocations: 6.465 MB / 442 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.4291, allocations: 0 / 442 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.4291, allocations: 0 / 442 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003698/0.4295, allocations: 0 / 442 MB, free: 14.84 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.01562/0.4451, allocations: 4.747 MB / 446.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.61e-05/0.4452, allocations: 8.031 kB / 446.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002467/0.4477, allocations: 0.6951 MB / 447.5 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008652/0.4564, allocations: 1.967 MB / 449.4 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007167/0.4636, allocations: 2.906 MB / 452.3 MB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002776/0.4639, allocations: 233.5 kB / 452.6 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001375/0.4653, allocations: 295.8 kB / 452.9 MB, free: 3.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01931/0.4846, allocations: 9.631 MB / 462.5 MB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002294/0.4849, allocations: 51.56 kB / 462.5 MB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001053/0.486, allocations: 151.8 kB / 462.7 MB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003111/0.4891, allocations: 1.915 MB / 464.6 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.5056, allocations: 7.629 MB / 472.2 MB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05313/0.5588, allocations: 37.68 MB / 0.498 GB, free: 8.84 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0076/0.5664, allocations: 2.886 MB / 0.5008 GB, free: 5.809 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00171/0.5682, allocations: 0.8844 MB / 0.5017 GB, free: 4.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008414/0.5766, allocations: 3.76 MB / 0.5053 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.5768, allocations: 47.22 kB / 0.5054 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 7.323e-06/0.5768, allocations: 0 / 0.5054 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02799/0.6048, allocations: 9.256 MB / 0.5144 GB, free: 7.539 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.613e-05/0.6049, allocations: 141.5 kB / 0.5145 GB, free: 7.371 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007907/0.6128, allocations: 3.954 MB / 0.5184 GB, free: 3.438 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002985/0.6132, allocations: 45.7 kB / 0.5184 GB, free: 3.387 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002971/0.6162, allocations: 3.213 MB / 0.5216 GB, free: 148 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009428/0.6172, allocations: 0.632 MB / 0.5222 GB, free: 15.51 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002847/0.62, allocations: 1.171 MB / 0.5233 GB, free: 14.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.6202, allocations: 305.1 kB / 0.5236 GB, free: 14.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003259/0.6234, allocations: 1.565 MB / 0.5252 GB, free: 12.45 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006356/0.6298, allocations: 5.338 MB / 0.5304 GB, free: 5.219 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2975/0.9274, allocations: 7.505 MB / 0.5377 GB, free: 122.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001847/0.9277, allocations: 42.06 kB / 0.5377 GB, free: 122.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01306/0.9407, allocations: 6.624 MB / 0.5442 GB, free: 120 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.9409, allocations: 62.59 kB / 0.5443 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000239/0.9411, allocations: 135.1 kB / 0.5444 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/0.9413, allocations: 178.9 kB / 0.5446 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004504/0.9458, allocations: 1.373 MB / 0.5459 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002347/0.9461, allocations: 261.8 kB / 0.5462 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004551/0.9507, allocations: 288.9 kB / 0.5464 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009349/0.9516, allocations: 359.5 kB / 0.5468 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.003626/0.9553, allocations: 1.975 MB / 0.5487 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006765/0.956, allocations: 358.3 kB / 0.5491 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/0.9583, allocations: 1.249 MB / 0.5503 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-05/0.9583, allocations: 16.88 kB / 0.5503 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.9583, allocations: 4.109 kB / 0.5503 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.9584, allocations: 11.48 kB / 0.5503 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/0.9691, allocations: 5.762 MB / 0.5559 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.09e-05/0.9692, allocations: 16 kB / 0.5559 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009761/0.9701, allocations: 275.7 kB / 0.5562 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.601e-05/0.9702, allocations: 30.25 kB / 0.5562 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.9703, allocations: 52 kB / 0.5563 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.231e-05/0.9703, allocations: 35.86 kB / 0.5563 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-05/0.9703, allocations: 29.84 kB / 0.5563 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003426/0.9738, allocations: 3.245 MB / 0.5595 GB, free: 111.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.975, allocations: 424.8 kB / 0.5599 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007007/0.9757, allocations: 53.34 kB / 0.56 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/0.9774, allocations: 58.64 kB / 0.56 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/0.9777, allocations: 146.2 kB / 0.5602 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.9778, allocations: 67.83 kB / 0.5602 GB, free: 110.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004191/0.982, allocations: 2.444 MB / 0.5626 GB, free: 108.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.22e-07/0.982, allocations: 0 / 0.5626 GB, free: 108.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005909/0.9879, allocations: 0.8614 MB / 0.5635 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.004611/0.9926, allocations: 3.918 MB / 0.5673 GB, free: 103.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005536/0.9982, allocations: 3.661 MB / 0.5709 GB, free: 99.92 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.697e-05/0.9983, allocations: 7.344 kB / 0.5709 GB, free: 99.92 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009204/0.9992, allocations: 0.73 MB / 0.5716 GB, free: 99.19 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/1.003, allocations: 455.3 kB / 0.572 GB, free: 98.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05371/1.056, allocations: 40.38 MB / 0.6114 GB, free: 52.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004314/1.061, allocations: 3.102 MB / 0.6145 GB, free: 48.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003853/1.065, allocations: 1.772 MB / 0.6162 GB, free: 47.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002504/1.067, allocations: 1.788 MB / 0.618 GB, free: 45.41 MB / 462.1 MB Notification: Performance of SimCode: time 1.843e-06/1.067, allocations: 0 / 0.618 GB, free: 45.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09558/1.163, allocations: 56.12 MB / 0.6728 GB, free: 5.742 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.54/18.7, allocations: 8 kB / 0.6728 GB, free: 5.734 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