Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001712/0.001712, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002709/0.002709, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.689/1.689, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3036, allocations: 50.55 MB / 408.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01477/0.3185, allocations: 10.68 MB / 419.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.3288, allocations: 3.888 MB / 423.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001909/0.3307, allocations: 59.81 kB / 423.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005256/0.336, allocations: 2.227 MB / 425.6 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005012/0.3411, allocations: 1.797 MB / 427.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002261/0.3434, allocations: 0.7058 MB / 428.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007196/0.3506, allocations: 4.316 MB / 432.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005012/0.3557, allocations: 2.884 MB / 435.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003405/0.3591, allocations: 1.468 MB / 436.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003948/0.3631, allocations: 2.079 MB / 438.9 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001527/0.3647, allocations: 292 kB / 439.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002906/0.3676, allocations: 0.9128 MB / 440.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002925/0.3705, allocations: 1.792 MB / 441.9 MB, free: 468 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004134/0.3747, allocations: 2.085 MB / 443.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.3853, allocations: 6.403 MB / 450.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3853, allocations: 0 / 450.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3853, allocations: 4 kB / 450.3 MB, free: 7.922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002138/0.3855, allocations: 0 / 450.3 MB, free: 7.922 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.01233/0.3979, allocations: 4.701 MB / 455.1 MB, free: 3.145 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.3979, allocations: 8.031 kB / 455.1 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001645/0.3996, allocations: 0.6951 MB / 455.8 MB, free: 2.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008727/0.4083, allocations: 1.964 MB / 457.7 MB, free: 472 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007168/0.4156, allocations: 2.691 MB / 460.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002971/0.4159, allocations: 229.6 kB / 460.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001695/0.4176, allocations: 299.8 kB / 460.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02256/0.4402, allocations: 9.651 MB / 470.6 MB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000394/0.4407, allocations: 55.56 kB / 470.6 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001368/0.4421, allocations: 143.9 kB / 470.8 MB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003646/0.4457, allocations: 1.915 MB / 472.7 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01903/0.4648, allocations: 7.652 MB / 480.3 MB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.062/0.5269, allocations: 37.68 MB / 0.5059 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008559/0.5356, allocations: 2.893 MB / 0.5087 GB, free: 15.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.5376, allocations: 0.8652 MB / 0.5095 GB, free: 14.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008748/0.5464, allocations: 3.859 MB / 0.5133 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.384e-05/0.5465, allocations: 43.22 kB / 0.5134 GB, free: 10.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 1.621e-05/0.5465, allocations: 0 / 0.5134 GB, free: 10.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02877/0.5753, allocations: 9.295 MB / 0.5224 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.5755, allocations: 141.5 kB / 0.5226 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00809/0.5836, allocations: 3.933 MB / 0.5264 GB, free: 12.62 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002374/0.5839, allocations: 45.7 kB / 0.5265 GB, free: 12.57 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00288/0.5867, allocations: 3.209 MB / 0.5296 GB, free: 9.332 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/0.588, allocations: 0.6397 MB / 0.5302 GB, free: 8.688 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002348/0.5904, allocations: 1.16 MB / 0.5313 GB, free: 7.516 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.5906, allocations: 309.3 kB / 0.5316 GB, free: 7.211 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003486/0.5941, allocations: 1.565 MB / 0.5332 GB, free: 5.641 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.287/0.881, allocations: 5.339 MB / 0.5384 GB, free: 118.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/0.8941, allocations: 7.532 MB / 0.5457 GB, free: 112.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001839/0.8943, allocations: 39.44 kB / 0.5458 GB, free: 112.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.0138/0.9081, allocations: 6.639 MB / 0.5523 GB, free: 110.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000156/0.9083, allocations: 70.25 kB / 0.5523 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002117/0.9085, allocations: 133.9 kB / 0.5525 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001943/0.9087, allocations: 174.8 kB / 0.5526 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004745/0.9135, allocations: 1.373 MB / 0.554 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002127/0.9137, allocations: 256.8 kB / 0.5542 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004473/0.9182, allocations: 297.1 kB / 0.5545 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000789/0.919, allocations: 366.4 kB / 0.5548 GB, free: 109.8 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.003758/0.9228, allocations: 1.972 MB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006445/0.9234, allocations: 352.8 kB / 0.5571 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00087/0.9243, allocations: 407 kB / 0.5575 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.26e-05/0.9244, allocations: 16.75 kB / 0.5575 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/0.9244, allocations: 3.562 kB / 0.5575 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/0.9244, allocations: 10 kB / 0.5575 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.936, allocations: 5.76 MB / 0.5631 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.471e-05/0.9361, allocations: 16.19 kB / 0.5632 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000984/0.9371, allocations: 278 kB / 0.5634 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.13e-05/0.9371, allocations: 28 kB / 0.5635 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.9373, allocations: 47.8 kB / 0.5635 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.503e-05/0.9373, allocations: 36.17 kB / 0.5635 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-05/0.9373, allocations: 31.88 kB / 0.5636 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004085/0.9414, allocations: 3.253 MB / 0.5667 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001368/0.9428, allocations: 427 kB / 0.5671 GB, free: 99.86 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007664/0.9436, allocations: 57.78 kB / 0.5672 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/0.9452, allocations: 55.78 kB / 0.5673 GB, free: 99.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.9454, allocations: 150.8 kB / 0.5674 GB, free: 99.65 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.795e-05/0.9455, allocations: 67.94 kB / 0.5675 GB, free: 99.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004834/0.9504, allocations: 2.435 MB / 0.5698 GB, free: 97.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.9504, allocations: 0 / 0.5698 GB, free: 97.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005275/0.9557, allocations: 0.8383 MB / 0.5707 GB, free: 96.76 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.004598/0.9603, allocations: 3.937 MB / 0.5745 GB, free: 92.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005627/0.9659, allocations: 3.667 MB / 0.5781 GB, free: 88.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-05/0.966, allocations: 4 kB / 0.5781 GB, free: 88.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.9673, allocations: 0.7377 MB / 0.5788 GB, free: 88.22 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003811/0.9712, allocations: 451.2 kB / 0.5792 GB, free: 87.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06079/1.032, allocations: 40.4 MB / 0.6187 GB, free: 41.13 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005172/1.037, allocations: 3.095 MB / 0.6217 GB, free: 38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00398/1.041, allocations: 1.768 MB / 0.6234 GB, free: 36.22 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002747/1.044, allocations: 1.784 MB / 0.6252 GB, free: 34.44 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/1.044, allocations: 0 / 0.6252 GB, free: 34.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1193/1.163, allocations: 55.97 MB / 0.6798 GB, free: 10.85 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.6/21.76, allocations: 13.09 kB / 0.6798 GB, free: 10.84 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches