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.001663/0.001663, allocations: 107.6 kB / 21.18 MB, free: 0.5859 MB / 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.001971/0.001971, allocations: 215.9 kB / 24.48 MB, free: 3.875 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.471/1.471, allocations: 207.7 MB / 235.3 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] 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.002026/0.002026, allocations: 55.92 kB / 347.2 MB, free: 9.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2671, allocations: 49.16 MB / 396.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.009156/0.2763, allocations: 9.421 MB / 405.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007758/0.284, allocations: 3.693 MB / 409.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00236/0.2864, allocations: 78.31 kB / 409.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005017/0.2914, allocations: 2.188 MB / 411.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006676/0.2981, allocations: 1.904 MB / 413.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.3002, allocations: 0.718 MB / 414.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006977/0.3072, allocations: 4.248 MB / 418.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003602/0.3108, allocations: 2.469 MB / 421.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.3136, allocations: 1.521 MB / 422.6 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003653/0.3173, allocations: 2.153 MB / 424.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008009/0.3181, allocations: 296 kB / 425 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001918/0.32, allocations: 0.8426 MB / 425.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002014/0.322, allocations: 1.877 MB / 427.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003482/0.3255, allocations: 1.58 MB / 429.3 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0101/0.3356, allocations: 6.512 MB / 435.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3356, allocations: 0 / 435.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3356, allocations: 0 / 435.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002399/0.3358, allocations: 0 / 435.8 MB, free: 11.62 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.01097/0.3468, allocations: 4.695 MB / 440.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3468, allocations: 15.98 kB / 440.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001488/0.3483, allocations: 0.6951 MB / 441.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007653/0.356, allocations: 1.964 MB / 443.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006545/0.3625, allocations: 3.158 MB / 446.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/0.3627, allocations: 225.6 kB / 446.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007314/0.3635, allocations: 303.8 kB / 446.9 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01736/0.3808, allocations: 9.66 MB / 456.6 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.381, allocations: 43.64 kB / 456.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003942/0.3814, allocations: 143.9 kB / 456.7 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003143/0.3845, allocations: 1.919 MB / 458.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01622/0.4007, allocations: 7.625 MB / 466.3 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04679/0.4475, allocations: 36.26 MB / 0.4908 GB, free: 6.824 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006739/0.4542, allocations: 2.321 MB / 0.493 GB, free: 4.465 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001428/0.4557, allocations: 0.7952 MB / 0.4938 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006031/0.4617, allocations: 2.876 MB / 0.4966 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.4617, allocations: 55.14 kB / 0.4967 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.146e-06/0.4618, allocations: 0 / 0.4967 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02198/0.4837, allocations: 9.224 MB / 0.5057 GB, free: 7.402 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.4839, allocations: 145.5 kB / 0.5058 GB, free: 7.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005653/0.4895, allocations: 4.195 MB / 0.5099 GB, free: 3.004 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002045/0.4897, allocations: 53.69 kB / 0.51 GB, free: 2.945 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002535/0.4922, allocations: 3.221 MB / 0.5131 GB, free: 15.69 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007862/0.493, allocations: 0.6281 MB / 0.5137 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001516/0.4945, allocations: 1.171 MB / 0.5149 GB, free: 13.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.4947, allocations: 305.1 kB / 0.5152 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002554/0.4973, allocations: 1.561 MB / 0.5167 GB, free: 12.01 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005738/0.503, allocations: 5.331 MB / 0.5219 GB, free: 4.781 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009261/0.5123, allocations: 7.521 MB / 0.5292 GB, free: 11.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/0.5124, allocations: 40 kB / 0.5293 GB, free: 11.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01201/0.5244, allocations: 6.63 MB / 0.5357 GB, free: 4.703 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.836e-05/0.5245, allocations: 60.94 kB / 0.5358 GB, free: 4.645 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/0.5246, allocations: 140 kB / 0.5359 GB, free: 4.508 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001779/0.5248, allocations: 176 kB / 0.5361 GB, free: 4.336 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004218/0.529, allocations: 1.372 MB / 0.5374 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002158/0.5292, allocations: 267 kB / 0.5377 GB, free: 2.699 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003717/0.5329, allocations: 287.6 kB / 0.538 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006888/0.5336, allocations: 368 kB / 0.5383 GB, free: 2.059 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.003172/0.5368, allocations: 1.982 MB / 0.5403 GB, free: 64 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006627/0.5375, allocations: 357.8 kB / 0.5406 GB, free: 15.71 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002133/0.5396, allocations: 1.254 MB / 0.5418 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/0.5396, allocations: 16 kB / 0.5418 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.5396, allocations: 0 / 0.5418 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.5397, allocations: 15.73 kB / 0.5419 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009262/0.5489, allocations: 5.437 MB / 0.5472 GB, free: 8.672 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.386e-05/0.5489, allocations: 20.95 kB / 0.5472 GB, free: 8.652 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009573/0.5499, allocations: 271.6 kB / 0.5474 GB, free: 8.387 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.389e-05/0.5499, allocations: 28 kB / 0.5475 GB, free: 8.359 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.104e-05/0.55, allocations: 56.05 kB / 0.5475 GB, free: 8.305 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-05/0.55, allocations: 35.86 kB / 0.5476 GB, free: 8.27 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.131e-05/0.5501, allocations: 27.88 kB / 0.5476 GB, free: 8.242 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004039/0.5541, allocations: 3.242 MB / 0.5507 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.5554, allocations: 465.4 kB / 0.5512 GB, free: 4.281 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003757/0.5558, allocations: 55.98 kB / 0.5512 GB, free: 4.227 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.5569, allocations: 55.95 kB / 0.5513 GB, free: 4.172 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.5571, allocations: 155.3 kB / 0.5514 GB, free: 4.02 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.5572, allocations: 71.92 kB / 0.5515 GB, free: 3.949 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004386/0.5616, allocations: 2.463 MB / 0.5539 GB, free: 1.473 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5616, allocations: 0 / 0.5539 GB, free: 1.473 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004665/0.5662, allocations: 0.8632 MB / 0.5548 GB, free: 0.6094 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.2012/0.7675, allocations: 3.906 MB / 0.5586 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006345/0.7738, allocations: 3.515 MB / 0.562 GB, free: 138.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-05/0.7738, allocations: 2.75 kB / 0.562 GB, free: 138.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.775, allocations: 0.6868 MB / 0.5627 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/0.7779, allocations: 443.6 kB / 0.5631 GB, free: 138.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04739/0.8253, allocations: 40.56 MB / 0.6027 GB, free: 107.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002825/0.8281, allocations: 2.568 MB / 0.6052 GB, free: 105.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003288/0.8314, allocations: 1.764 MB / 0.6069 GB, free: 103.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001781/0.8332, allocations: 1.804 MB / 0.6087 GB, free: 101.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.8332, allocations: 0 / 0.6087 GB, free: 101.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09297/0.9261, allocations: 56.26 MB / 0.6636 GB, free: 45.18 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.51/16.44, allocations: 3.953 kB / 0.6636 GB, free: 45.18 MB / 478.1 MB " [Timeout remaining time 643] (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.0009996 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.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.14855752699077]