Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_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.001617/0.001617, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001813/0.001813, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09736, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.209/0.3064, allocations: 10.75 MB / 385.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00837/0.3148, allocations: 3.875 MB / 389.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002205/0.3172, allocations: 67.28 kB / 389.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004453/0.3216, allocations: 2.235 MB / 391.6 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005907/0.3276, allocations: 1.884 MB / 393.5 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.3295, allocations: 0.7196 MB / 394.2 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006647/0.3362, allocations: 4.257 MB / 398.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003747/0.3399, allocations: 2.925 MB / 401.4 MB, free: 132 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003006/0.343, allocations: 1.484 MB / 402.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003328/0.3463, allocations: 2.096 MB / 404.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008184/0.3471, allocations: 292.7 kB / 405.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002272/0.3494, allocations: 0.9394 MB / 406.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002/0.3514, allocations: 1.828 MB / 408 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002572/0.354, allocations: 2.117 MB / 410.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008281/0.3623, allocations: 6.477 MB / 416.6 MB, free: 5.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.3624, allocations: 3.984 kB / 416.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3624, allocations: 3.938 kB / 416.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001929/0.3626, allocations: 4 kB / 416.6 MB, free: 5.809 MB / 334.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.009056/0.3716, allocations: 4.779 MB / 421.4 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.3717, allocations: 12.03 kB / 421.4 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009686/0.3727, allocations: 0.6912 MB / 422.1 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007212/0.3799, allocations: 1.971 MB / 424.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005866/0.3858, allocations: 3.2 MB / 427.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001743/0.386, allocations: 229.6 kB / 427.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005898/0.3866, allocations: 299.8 kB / 427.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/0.4019, allocations: 9.631 MB / 437.4 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.4021, allocations: 47.58 kB / 437.4 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/0.4024, allocations: 151.9 kB / 437.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002692/0.4051, allocations: 1.919 MB / 439.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01488/0.42, allocations: 7.633 MB / 447.2 MB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04621/0.4663, allocations: 37.68 MB / 484.8 MB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006798/0.4731, allocations: 2.89 MB / 487.7 MB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.4746, allocations: 0.8811 MB / 488.6 MB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00636/0.4809, allocations: 3.768 MB / 492.4 MB, free: 7.578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.404e-05/0.481, allocations: 43.22 kB / 492.4 MB, free: 7.523 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.398e-06/0.481, allocations: 0 / 492.4 MB, free: 7.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02415/0.5052, allocations: 9.374 MB / 0.49 GB, free: 14.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.143e-05/0.5053, allocations: 145.6 kB / 0.4902 GB, free: 13.88 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007505/0.5129, allocations: 3.978 MB / 0.4941 GB, free: 9.867 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002471/0.5131, allocations: 49.7 kB / 0.4941 GB, free: 9.812 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002597/0.5158, allocations: 3.221 MB / 0.4972 GB, free: 6.562 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007887/0.5166, allocations: 0.6242 MB / 0.4979 GB, free: 5.934 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002329/0.5189, allocations: 1.167 MB / 0.499 GB, free: 4.754 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.519, allocations: 305.1 kB / 0.4993 GB, free: 4.453 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002831/0.5219, allocations: 1.561 MB / 0.5008 GB, free: 2.887 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006692/0.5286, allocations: 5.338 MB / 0.506 GB, free: 11.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008986/0.5376, allocations: 7.526 MB / 0.5134 GB, free: 2.242 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001407/0.5378, allocations: 36 kB / 0.5134 GB, free: 2.207 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01172/0.5495, allocations: 6.634 MB / 0.5199 GB, free: 11.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001544/0.5497, allocations: 67.98 kB / 0.52 GB, free: 11.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002239/0.5499, allocations: 132 kB / 0.5201 GB, free: 11.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002306/0.5501, allocations: 180.8 kB / 0.5202 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004065/0.5542, allocations: 1.372 MB / 0.5216 GB, free: 9.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000226/0.5545, allocations: 263 kB / 0.5218 GB, free: 9.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/0.5585, allocations: 283.7 kB / 0.5221 GB, free: 9.285 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007042/0.5592, allocations: 364 kB / 0.5225 GB, free: 8.93 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.003502/0.5627, allocations: 1.978 MB / 0.5244 GB, free: 6.938 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007278/0.5634, allocations: 353.6 kB / 0.5247 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002457/0.5659, allocations: 1.25 MB / 0.5259 GB, free: 5.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.774e-05/0.566, allocations: 16 kB / 0.526 GB, free: 5.305 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.566, allocations: 4 kB / 0.526 GB, free: 5.301 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.566, allocations: 12.11 kB / 0.526 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/0.577, allocations: 5.764 MB / 0.5316 GB, free: 15.19 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.755e-05/0.5771, allocations: 16 kB / 0.5316 GB, free: 15.18 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.5781, allocations: 284.3 kB / 0.5319 GB, free: 14.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.911e-05/0.5782, allocations: 27.94 kB / 0.5319 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.5783, allocations: 56 kB / 0.532 GB, free: 14.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.25e-05/0.5783, allocations: 35.86 kB / 0.532 GB, free: 14.78 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-05/0.5784, allocations: 27.88 kB / 0.532 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003956/0.5823, allocations: 3.234 MB / 0.5352 GB, free: 11.26 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/0.5836, allocations: 0.5259 MB / 0.5357 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00073/0.5843, allocations: 47.98 kB / 0.5358 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/0.5859, allocations: 63.95 kB / 0.5358 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.5861, allocations: 147.4 kB / 0.536 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.5862, allocations: 72 kB / 0.536 GB, free: 10.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004766/0.591, allocations: 2.463 MB / 0.5384 GB, free: 7.91 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.591, allocations: 0 / 0.5384 GB, free: 7.91 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005305/0.5963, allocations: 0.8631 MB / 0.5393 GB, free: 7.047 MB / 478.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.004732/0.601, allocations: 3.931 MB / 0.5431 GB, free: 2.844 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1905/0.7915, allocations: 3.659 MB / 0.5467 GB, free: 151.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-05/0.7916, allocations: 4.062 kB / 0.5467 GB, free: 151.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/0.7928, allocations: 0.7233 MB / 0.5474 GB, free: 151.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/0.796, allocations: 457.9 kB / 0.5478 GB, free: 151.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06018/0.8562, allocations: 40.56 MB / 0.5874 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003224/0.8595, allocations: 3.103 MB / 0.5905 GB, free: 121.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003579/0.8631, allocations: 1.765 MB / 0.5922 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002025/0.8651, allocations: 1.796 MB / 0.5939 GB, free: 118.4 MB / 478.1 MB Notification: Performance of SimCode: time 2.755e-06/0.8651, allocations: 0 / 0.5939 GB, free: 118.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0894/0.9545, allocations: 56.38 MB / 0.649 GB, free: 62.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.36/18.32, allocations: 7.5 kB / 0.649 GB, free: 62.01 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches