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.001643/0.001643, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002006/0.002006, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001403, allocations: 59.38 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0844/0.08583, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01116/0.09703, allocations: 10.67 MB / 368.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1606/0.2576, allocations: 3.879 MB / 372.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.2594, allocations: 64.75 kB / 372.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004913/0.2644, allocations: 2.22 MB / 374.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004908/0.2693, allocations: 1.798 MB / 376.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002122/0.2715, allocations: 0.7104 MB / 376.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007094/0.2786, allocations: 4.31 MB / 381.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004769/0.2834, allocations: 2.893 MB / 384.1 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002737/0.2862, allocations: 1.468 MB / 385.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003246/0.2894, allocations: 2.079 MB / 387.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001216/0.2907, allocations: 292.8 kB / 388 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002877/0.2936, allocations: 0.9147 MB / 388.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002928/0.2965, allocations: 1.791 MB / 390.7 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003988/0.3005, allocations: 2.08 MB / 392.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006936/0.3075, allocations: 6.135 MB / 398.9 MB, free: 15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3075, allocations: 3.984 kB / 398.9 MB, free: 15 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3075, allocations: 0 / 398.9 MB, free: 15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002157/0.3077, allocations: 0 / 398.9 MB, free: 15 MB / 318.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.009141/0.3169, allocations: 4.582 MB / 403.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.317, allocations: 12.02 kB / 403.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001063/0.318, allocations: 0.6926 MB / 404.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007476/0.3255, allocations: 1.944 MB / 406.1 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004979/0.3305, allocations: 2.631 MB / 408.8 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/0.3307, allocations: 232.2 kB / 409 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000837/0.3316, allocations: 298.1 kB / 409.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01678/0.3484, allocations: 9.653 MB / 418.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001731/0.3486, allocations: 47.53 kB / 419 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008931/0.3495, allocations: 148.3 kB / 419.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003074/0.3526, allocations: 1.92 MB / 421 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01791/0.3705, allocations: 7.647 MB / 428.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04531/0.4159, allocations: 37.75 MB / 466.4 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007203/0.4231, allocations: 2.889 MB / 469.3 MB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/0.4247, allocations: 0.8878 MB / 470.2 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007257/0.432, allocations: 3.832 MB / 474 MB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.042e-05/0.4321, allocations: 47.22 kB / 474.1 MB, free: 2.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.12e-06/0.4321, allocations: 0 / 474.1 MB, free: 2.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02357/0.4557, allocations: 9.064 MB / 483.1 MB, free: 9.145 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.517e-05/0.4558, allocations: 145.5 kB / 483.3 MB, free: 8.973 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007288/0.4631, allocations: 3.921 MB / 487.2 MB, free: 5.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002442/0.4634, allocations: 49.64 kB / 487.3 MB, free: 5.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002401/0.4658, allocations: 3.084 MB / 490.3 MB, free: 1.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007116/0.4665, allocations: 0.6105 MB / 491 MB, free: 1.328 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00182/0.4684, allocations: 1.153 MB / 492.1 MB, free: 168 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.4685, allocations: 309.1 kB / 492.4 MB, free: 15.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002671/0.4712, allocations: 1.569 MB / 494 MB, free: 14.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004857/0.476, allocations: 5.338 MB / 499.3 MB, free: 7.047 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007972/0.484, allocations: 7.536 MB / 0.495 GB, free: 13.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.146e-05/0.4841, allocations: 44 kB / 0.495 GB, free: 13.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01148/0.4956, allocations: 6.618 MB / 0.5015 GB, free: 6.969 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.4958, allocations: 64 kB / 0.5015 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001619/0.4959, allocations: 136 kB / 0.5017 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001744/0.4961, allocations: 176 kB / 0.5018 GB, free: 6.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004054/0.5002, allocations: 1.372 MB / 0.5032 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002231/0.5004, allocations: 263 kB / 0.5034 GB, free: 4.969 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003612/0.5041, allocations: 287.8 kB / 0.5037 GB, free: 4.688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000678/0.5048, allocations: 364 kB / 0.504 GB, free: 4.332 MB / 430.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.003797/0.5086, allocations: 1.984 MB / 0.506 GB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007713/0.5093, allocations: 339.7 kB / 0.5063 GB, free: 2.004 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009829/0.5103, allocations: 401.5 kB / 0.5067 GB, free: 1.613 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.679e-05/0.5104, allocations: 20 kB / 0.5067 GB, free: 1.594 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.5104, allocations: 0 / 0.5067 GB, free: 1.594 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.077e-05/0.5104, allocations: 7.969 kB / 0.5067 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.5219, allocations: 5.753 MB / 0.5123 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-05/0.522, allocations: 20 kB / 0.5124 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.523, allocations: 284.2 kB / 0.5126 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-05/0.5231, allocations: 24 kB / 0.5127 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/0.5232, allocations: 56 kB / 0.5127 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-05/0.5233, allocations: 35.86 kB / 0.5127 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.886e-05/0.5233, allocations: 27.88 kB / 0.5128 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004366/0.5277, allocations: 3.233 MB / 0.5159 GB, free: 7.613 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008996/0.5286, allocations: 404.5 kB / 0.5163 GB, free: 7.195 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005873/0.5292, allocations: 58.31 kB / 0.5164 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/0.5307, allocations: 59.97 kB / 0.5164 GB, free: 7.082 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.5309, allocations: 147.4 kB / 0.5166 GB, free: 6.938 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.531, allocations: 64 kB / 0.5166 GB, free: 6.875 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004102/0.5351, allocations: 2.442 MB / 0.519 GB, free: 4.453 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5351, allocations: 0 / 0.519 GB, free: 4.453 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004447/0.5396, allocations: 0.8388 MB / 0.5198 GB, free: 3.617 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.1661/0.7057, allocations: 3.902 MB / 0.5236 GB, free: 139 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006292/0.712, allocations: 3.794 MB / 0.5273 GB, free: 138.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.682e-05/0.712, allocations: 6.344 kB / 0.5273 GB, free: 138.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.7131, allocations: 0.7338 MB / 0.5281 GB, free: 138.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/0.716, allocations: 454.9 kB / 0.5285 GB, free: 138.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05092/0.7669, allocations: 45.5 MB / 0.5729 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002529/0.7695, allocations: 3.099 MB / 0.576 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003784/0.7733, allocations: 1.764 MB / 0.5777 GB, free: 98.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/0.7749, allocations: 1.787 MB / 0.5794 GB, free: 97.18 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.7749, allocations: 3.828 kB / 0.5794 GB, free: 97.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08101/0.8559, allocations: 59.77 MB / 0.6378 GB, free: 37.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.308/10.16, allocations: 7.75 kB / 0.6378 GB, free: 37.69 MB / 446.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.0.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