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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 58.58 kB / 347.2 MB, free: 9.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2396, allocations: 49.15 MB / 396.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008726/0.2484, allocations: 9.409 MB / 405.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006709/0.2551, allocations: 3.7 MB / 409.5 MB, free: 432 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.2563, allocations: 75.03 kB / 409.5 MB, free: 408 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003904/0.2602, allocations: 2.192 MB / 411.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004407/0.2646, allocations: 1.895 MB / 413.6 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.2661, allocations: 0.7217 MB / 414.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005187/0.2712, allocations: 4.255 MB / 418.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002796/0.274, allocations: 2.461 MB / 421.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.2763, allocations: 1.522 MB / 422.6 MB, free: 8.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003054/0.2793, allocations: 2.159 MB / 424.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000707/0.28, allocations: 296 kB / 425 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002162/0.2822, allocations: 0.8387 MB / 425.9 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001784/0.284, allocations: 1.877 MB / 427.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00171/0.2857, allocations: 1.58 MB / 429.3 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006766/0.2925, allocations: 6.512 MB / 435.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2925, allocations: 0 / 435.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2925, allocations: 0 / 435.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.131e-05/0.2925, allocations: 0 / 435.8 MB, free: 11.49 MB / 350.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.007597/0.3001, allocations: 4.699 MB / 440.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.3002, allocations: 11.98 kB / 440.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007943/0.301, allocations: 0.6912 MB / 441.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006911/0.3079, allocations: 1.971 MB / 443.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006134/0.314, allocations: 3.154 MB / 446.4 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.3142, allocations: 225.6 kB / 446.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005005/0.3147, allocations: 295.8 kB / 446.9 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01451/0.3292, allocations: 9.664 MB / 456.5 MB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-05/0.3293, allocations: 47.58 kB / 456.6 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003258/0.3297, allocations: 143.9 kB / 456.7 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002909/0.3326, allocations: 1.923 MB / 458.7 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/0.3467, allocations: 7.621 MB / 466.3 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04325/0.39, allocations: 36.26 MB / 0.4908 GB, free: 6.699 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00652/0.3965, allocations: 2.322 MB / 0.493 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.3978, allocations: 0.7916 MB / 0.4938 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006117/0.4039, allocations: 2.887 MB / 0.4966 GB, free: 0.625 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.404, allocations: 51.2 kB / 0.4967 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.478e-06/0.404, allocations: 0 / 0.4967 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02383/0.4278, allocations: 9.224 MB / 0.5057 GB, free: 7.273 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.4279, allocations: 141.5 kB / 0.5058 GB, free: 7.105 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006813/0.4347, allocations: 4.195 MB / 0.5099 GB, free: 2.879 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002159/0.435, allocations: 53.69 kB / 0.51 GB, free: 2.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002845/0.4378, allocations: 3.213 MB / 0.5131 GB, free: 15.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008251/0.4386, allocations: 0.6319 MB / 0.5137 GB, free: 14.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001924/0.4406, allocations: 1.171 MB / 0.5149 GB, free: 13.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.4407, allocations: 308.9 kB / 0.5152 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/0.4435, allocations: 1.569 MB / 0.5167 GB, free: 11.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006672/0.4502, allocations: 5.327 MB / 0.5219 GB, free: 4.656 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01049/0.4607, allocations: 7.522 MB / 0.5292 GB, free: 11.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001475/0.4608, allocations: 40 kB / 0.5293 GB, free: 11.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01425/0.4751, allocations: 6.631 MB / 0.5357 GB, free: 4.574 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001733/0.4752, allocations: 64 kB / 0.5358 GB, free: 4.512 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002162/0.4755, allocations: 132 kB / 0.5359 GB, free: 4.383 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002393/0.4757, allocations: 176 kB / 0.5361 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004358/0.4801, allocations: 1.373 MB / 0.5374 GB, free: 2.836 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002642/0.4803, allocations: 263 kB / 0.5377 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00351/0.4838, allocations: 283.7 kB / 0.538 GB, free: 2.301 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006306/0.4845, allocations: 368 kB / 0.5383 GB, free: 1.941 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.003084/0.4876, allocations: 1.982 MB / 0.5403 GB, free: 15.95 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006308/0.4882, allocations: 365.6 kB / 0.5406 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002104/0.4903, allocations: 1.25 MB / 0.5418 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.422e-05/0.4903, allocations: 19.98 kB / 0.5418 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4903, allocations: 4 kB / 0.5418 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.4903, allocations: 7.922 kB / 0.5419 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009394/0.4997, allocations: 5.441 MB / 0.5472 GB, free: 8.547 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.917e-05/0.4998, allocations: 20 kB / 0.5472 GB, free: 8.527 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009981/0.5008, allocations: 275.5 kB / 0.5474 GB, free: 8.258 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.821e-05/0.5008, allocations: 28 kB / 0.5475 GB, free: 8.23 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.594e-05/0.5009, allocations: 47.98 kB / 0.5475 GB, free: 8.184 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.279e-05/0.5009, allocations: 35.92 kB / 0.5476 GB, free: 8.148 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.369e-05/0.5009, allocations: 36.25 kB / 0.5476 GB, free: 8.113 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004187/0.5051, allocations: 3.238 MB / 0.5508 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/0.5064, allocations: 465.4 kB / 0.5512 GB, free: 4.156 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003209/0.5067, allocations: 51.98 kB / 0.5512 GB, free: 4.105 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.5078, allocations: 59.95 kB / 0.5513 GB, free: 4.047 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/0.508, allocations: 151.3 kB / 0.5514 GB, free: 3.898 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.5081, allocations: 67.98 kB / 0.5515 GB, free: 3.832 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004205/0.5123, allocations: 2.467 MB / 0.5539 GB, free: 1.352 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5123, allocations: 0 / 0.5539 GB, free: 1.352 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004287/0.5166, allocations: 0.8671 MB / 0.5548 GB, free: 496 kB / 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.1716/0.6882, allocations: 3.9 MB / 0.5586 GB, free: 139.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005401/0.6936, allocations: 3.522 MB / 0.562 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.552e-05/0.6936, allocations: 2.656 kB / 0.562 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008906/0.6945, allocations: 0.6794 MB / 0.5627 GB, free: 138.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002706/0.6972, allocations: 456.8 kB / 0.5631 GB, free: 137.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04012/0.7373, allocations: 40.56 MB / 0.6027 GB, free: 107.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00241/0.7398, allocations: 2.562 MB / 0.6052 GB, free: 104.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003095/0.7429, allocations: 1.772 MB / 0.607 GB, free: 103.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00146/0.7443, allocations: 1.796 MB / 0.6087 GB, free: 101.4 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7443, allocations: 4 kB / 0.6087 GB, free: 101.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.7/3.445, allocations: 56.25 MB / 0.6636 GB, free: 45.05 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/18.71, allocations: 3.953 kB / 0.6636 GB, free: 45.05 MB / 478.1 MB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.643059765920043]