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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001542/0.001542, allocations: 118.6 kB / 18.5 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001757/0.001757, allocations: 214.6 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 230.2 MB / 254.5 MB, free: 15.4 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 63.89 kB / 373.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1065, allocations: 53.33 MB / 426.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01291/0.1194, allocations: 10.72 MB / 437.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008219/0.1276, allocations: 3.9 MB / 441.3 MB, free: 6.312 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/0.1289, allocations: 63.81 kB / 441.4 MB, free: 6.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004324/0.1332, allocations: 2.262 MB / 443.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004714/0.138, allocations: 1.837 MB / 445.5 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001548/0.1395, allocations: 0.7175 MB / 446.2 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2222/0.3617, allocations: 4.303 MB / 450.5 MB, free: 7.895 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006227/0.3679, allocations: 2.5 MB / 453 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00532/0.3732, allocations: 1.469 MB / 454.4 MB, free: 7.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006951/0.3802, allocations: 2.251 MB / 456.7 MB, free: 7.352 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002221/0.3824, allocations: 292.7 kB / 457 MB, free: 7.352 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004327/0.3867, allocations: 0.9482 MB / 457.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004401/0.3911, allocations: 1.851 MB / 459.8 MB, free: 7.117 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006403/0.3975, allocations: 2.087 MB / 461.9 MB, free: 6.312 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01534/0.4129, allocations: 6.394 MB / 468.3 MB, free: 4.129 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4129, allocations: 4 kB / 468.3 MB, free: 4.125 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4129, allocations: 0 / 468.3 MB, free: 4.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002875/0.4132, allocations: 0 / 468.3 MB, free: 4.125 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.01621/0.4294, allocations: 4.71 MB / 473 MB, free: 1.434 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.519e-05/0.4295, allocations: 14.59 kB / 473 MB, free: 1.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002055/0.4315, allocations: 0.6927 MB / 473.7 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00762/0.4391, allocations: 1.963 MB / 475.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008503/0.4477, allocations: 2.691 MB / 478.3 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/0.4479, allocations: 231.9 kB / 478.6 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001152/0.4491, allocations: 293.2 kB / 478.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01849/0.4676, allocations: 9.65 MB / 488.5 MB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000121/0.4677, allocations: 54.31 kB / 488.6 MB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003924/0.4681, allocations: 147.1 kB / 488.7 MB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002688/0.4708, allocations: 1.923 MB / 490.6 MB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01496/0.4857, allocations: 7.642 MB / 498.3 MB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05393/0.5397, allocations: 37.67 MB / 0.5234 GB, free: 9.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007823/0.5475, allocations: 2.788 MB / 0.5261 GB, free: 6.504 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.5493, allocations: 0.8005 MB / 0.5269 GB, free: 5.691 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009743/0.559, allocations: 3.848 MB / 0.5306 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.909e-05/0.5591, allocations: 55.16 kB / 0.5307 GB, free: 1.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 4.228e-06/0.5591, allocations: 0 / 0.5307 GB, free: 1.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02671/0.5858, allocations: 9.296 MB / 0.5398 GB, free: 8.207 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.5859, allocations: 145.5 kB / 0.5399 GB, free: 8.035 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009211/0.5951, allocations: 3.933 MB / 0.5437 GB, free: 4.121 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002391/0.5954, allocations: 45.7 kB / 0.5438 GB, free: 4.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00333/0.5987, allocations: 3.212 MB / 0.5469 GB, free: 0.875 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001013/0.5997, allocations: 0.6339 MB / 0.5475 GB, free: 256 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002651/0.6024, allocations: 1.168 MB / 0.5487 GB, free: 15.07 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.6025, allocations: 305.1 kB / 0.549 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003366/0.6059, allocations: 1.569 MB / 0.5505 GB, free: 13.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006467/0.6123, allocations: 5.338 MB / 0.5557 GB, free: 5.977 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009464/0.6218, allocations: 7.522 MB / 0.5631 GB, free: 12.59 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001083/0.6219, allocations: 40 kB / 0.5631 GB, free: 12.55 MB / 478.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01201/0.6339, allocations: 6.647 MB / 0.5696 GB, free: 5.914 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.634, allocations: 68.06 kB / 0.5697 GB, free: 5.848 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001794/0.6342, allocations: 140 kB / 0.5698 GB, free: 5.711 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/0.6344, allocations: 176 kB / 0.57 GB, free: 5.539 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003988/0.6384, allocations: 1.376 MB / 0.5713 GB, free: 4.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002499/0.6387, allocations: 259 kB / 0.5715 GB, free: 3.906 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003495/0.6421, allocations: 294.2 kB / 0.5718 GB, free: 3.621 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005479/0.6427, allocations: 364 kB / 0.5722 GB, free: 3.266 MB / 478.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.003125/0.6458, allocations: 1.966 MB / 0.5741 GB, free: 1.289 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006329/0.6465, allocations: 357.5 kB / 0.5744 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008806/0.6473, allocations: 409.5 kB / 0.5748 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.599e-05/0.6474, allocations: 20 kB / 0.5748 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.6474, allocations: 0 / 0.5748 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.6474, allocations: 7.984 kB / 0.5749 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/0.6588, allocations: 5.75 MB / 0.5805 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-05/0.6588, allocations: 20 kB / 0.5805 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009947/0.6598, allocations: 279.6 kB / 0.5808 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-05/0.6599, allocations: 24 kB / 0.5808 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.66, allocations: 55.98 kB / 0.5808 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-05/0.66, allocations: 35.86 kB / 0.5809 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.941e-05/0.66, allocations: 27.88 kB / 0.5809 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004255/0.6643, allocations: 3.25 MB / 0.5841 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/0.6655, allocations: 426.6 kB / 0.5845 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006114/0.6661, allocations: 59.92 kB / 0.5845 GB, free: 6.035 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.6675, allocations: 63.89 kB / 0.5846 GB, free: 5.973 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.6677, allocations: 143.4 kB / 0.5847 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.6678, allocations: 71.03 kB / 0.5848 GB, free: 5.766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004544/0.6723, allocations: 2.442 MB / 0.5872 GB, free: 3.344 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6723, allocations: 0 / 0.5872 GB, free: 3.344 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004724/0.677, allocations: 0.8397 MB / 0.588 GB, free: 2.504 MB / 494.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.004685/0.6817, allocations: 3.921 MB / 0.5918 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006273/0.688, allocations: 3.524 MB / 0.5953 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/0.688, allocations: 4 kB / 0.5953 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009752/0.689, allocations: 0.7 MB / 0.596 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.6917, allocations: 450.1 kB / 0.5964 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.247/0.9387, allocations: 40.38 MB / 0.6358 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003102/0.9418, allocations: 3.094 MB / 0.6388 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003874/0.9457, allocations: 1.76 MB / 0.6406 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.9473, allocations: 1.786 MB / 0.6423 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/0.9473, allocations: 0 / 0.6423 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.573/2.52, allocations: 56.37 MB / 0.6974 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.96/21.48, allocations: 4.562 kB / 0.6974 GB, free: 138.2 MB / 0.5294 GB " [Timeout remaining time 638] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.67213549790904]