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.000985/0.0009852, allocations: 89.44 kB / 16.65 MB, free: 6.535 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.0008786/0.0008786, allocations: 177.8 kB / 17.56 MB, free: 6.18 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.323/1.323, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002911, allocations: 8 kB / 301.5 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1052, allocations: 50.41 MB / 352 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2119/0.3172, allocations: 37.57 MB / 389.5 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.335, allocations: 8.418 MB / 397.9 MB, free: 332 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006705/0.3417, allocations: 166.3 kB / 398.1 MB, free: 304 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.3431, allocations: 407.1 kB / 398.5 MB, free: 148 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00478/0.3478, allocations: 1.731 MB / 400.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001518/0.3494, allocations: 0.6528 MB / 400.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006914/0.3563, allocations: 5.858 MB / 406.7 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005285/0.3616, allocations: 3.696 MB / 410.4 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002378/0.364, allocations: 1.155 MB / 411.6 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003127/0.3671, allocations: 2.024 MB / 413.6 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007412/0.3679, allocations: 140 kB / 413.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002257/0.3702, allocations: 0.8463 MB / 414.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001991/0.3722, allocations: 1.667 MB / 416.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00297/0.3752, allocations: 1.942 MB / 418.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006908/0.3821, allocations: 5.975 MB / 424.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3821, allocations: 0 / 424.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3821, allocations: 0 / 424.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002385/0.3823, allocations: 4 kB / 424.2 MB, free: 11.75 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.007704/0.3901, allocations: 3.812 MB / 428 MB, free: 7.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3901, allocations: 8.031 kB / 428 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001505/0.3916, allocations: 0.699 MB / 428.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007732/0.3994, allocations: 1.992 MB / 430.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005174/0.4046, allocations: 2.855 MB / 433.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.4048, allocations: 225.6 kB / 433.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008779/0.4057, allocations: 299.8 kB / 434.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01585/0.4216, allocations: 9.651 MB / 443.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.4217, allocations: 47.53 kB / 443.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005625/0.4223, allocations: 147.9 kB / 443.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002865/0.4252, allocations: 1.923 MB / 445.8 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01497/0.4402, allocations: 7.641 MB / 453.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04201/0.4822, allocations: 37.76 MB / 491.2 MB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006728/0.489, allocations: 2.898 MB / 494.1 MB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.4903, allocations: 0.8799 MB / 495 MB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005791/0.4961, allocations: 3.758 MB / 498.8 MB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.4962, allocations: 51.16 kB / 498.8 MB, free: 14.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.128e-06/0.4962, allocations: 0 / 498.8 MB, free: 14.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02204/0.5183, allocations: 9.036 MB / 0.496 GB, free: 5.496 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.494e-05/0.5184, allocations: 153.5 kB / 0.4961 GB, free: 5.316 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00699/0.5254, allocations: 3.937 MB / 0.4999 GB, free: 1.398 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001709/0.5256, allocations: 49.7 kB / 0.5 GB, free: 1.344 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002205/0.5278, allocations: 3.086 MB / 0.503 GB, free: 14.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006864/0.5285, allocations: 0.598 MB / 0.5036 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008016/0.5293, allocations: 0.4911 MB / 0.5041 GB, free: 13.11 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.746e-05/0.5294, allocations: 309 kB / 0.5044 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/0.5322, allocations: 1.561 MB / 0.5059 GB, free: 11.24 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005532/0.5377, allocations: 5.331 MB / 0.5111 GB, free: 4.012 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009335/0.5471, allocations: 7.527 MB / 0.5184 GB, free: 10.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001447/0.5472, allocations: 36 kB / 0.5185 GB, free: 10.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01157/0.5588, allocations: 6.623 MB / 0.5249 GB, free: 3.938 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.559, allocations: 64 kB / 0.525 GB, free: 3.875 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000194/0.5592, allocations: 132 kB / 0.5251 GB, free: 3.746 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001978/0.5594, allocations: 180 kB / 0.5253 GB, free: 3.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003906/0.5633, allocations: 1.369 MB / 0.5266 GB, free: 2.199 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002405/0.5636, allocations: 267 kB / 0.5269 GB, free: 1.938 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003737/0.5673, allocations: 279.7 kB / 0.5272 GB, free: 1.664 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005203/0.5678, allocations: 364 kB / 0.5275 GB, free: 1.309 MB / 446.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.1837/0.7516, allocations: 1.973 MB / 0.5294 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006986/0.7523, allocations: 338.1 kB / 0.5298 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002296/0.7546, allocations: 1.245 MB / 0.531 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.94e-05/0.7546, allocations: 18.73 kB / 0.531 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.7547, allocations: 3.406 kB / 0.531 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/0.7547, allocations: 7.266 kB / 0.531 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008631/0.7633, allocations: 5.753 MB / 0.5366 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.679e-05/0.7634, allocations: 18.53 kB / 0.5366 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009256/0.7643, allocations: 283.5 kB / 0.5369 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.961e-05/0.7643, allocations: 24.19 kB / 0.5369 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.444e-05/0.7644, allocations: 48.67 kB / 0.537 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.439e-05/0.7645, allocations: 41.91 kB / 0.537 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.236e-05/0.7645, allocations: 29.27 kB / 0.537 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003539/0.7681, allocations: 3.223 MB / 0.5402 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000753/0.7688, allocations: 417 kB / 0.5406 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002961/0.7691, allocations: 54.39 kB / 0.5406 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.7702, allocations: 56.88 kB / 0.5407 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.7704, allocations: 149.9 kB / 0.5408 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.972e-05/0.7705, allocations: 65.88 kB / 0.5409 GB, free: 141.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003883/0.7744, allocations: 2.442 MB / 0.5433 GB, free: 140.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7744, allocations: 0 / 0.5433 GB, free: 140.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004535/0.7789, allocations: 0.862 MB / 0.5441 GB, free: 140.4 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.003724/0.7827, allocations: 3.893 MB / 0.5479 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004871/0.7875, allocations: 3.614 MB / 0.5515 GB, free: 136.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.7876, allocations: 3.875 kB / 0.5515 GB, free: 136.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007615/0.7883, allocations: 0.7303 MB / 0.5522 GB, free: 136.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01129/0.7996, allocations: 440.4 kB / 0.5526 GB, free: 136.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0568/0.8564, allocations: 47.39 MB / 0.5989 GB, free: 87.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00369/0.8602, allocations: 3.099 MB / 0.6019 GB, free: 84.22 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004224/0.8644, allocations: 1.76 MB / 0.6036 GB, free: 82.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001934/0.8664, allocations: 1.796 MB / 0.6054 GB, free: 80.66 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8664, allocations: 0 / 0.6054 GB, free: 80.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07951/0.9459, allocations: 58.37 MB / 0.6624 GB, free: 22.69 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/0.9461, allocations: 222.3 kB / 0.6626 GB, free: 22.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.893/4.839, allocations: 0 / 0.6626 GB, free: 22.43 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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