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.001375/0.001375, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001475/0.001475, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.447/1.447, allocations: 207.6 MB / 235.3 MB, free: 9.996 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.001759/0.001759, allocations: 47.94 kB / 347.2 MB, free: 10.1 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.284, allocations: 49.17 MB / 396.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01091/0.2949, allocations: 10.81 MB / 407.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009045/0.3039, allocations: 3.932 MB / 411.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002484/0.3064, allocations: 75.75 kB / 411.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005021/0.3114, allocations: 2.275 MB / 413.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.317, allocations: 1.887 MB / 415.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001907/0.3189, allocations: 0.7226 MB / 416.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006807/0.3257, allocations: 4.266 MB / 420.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003927/0.3297, allocations: 2.478 MB / 422.8 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00352/0.3332, allocations: 1.515 MB / 424.3 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004366/0.3376, allocations: 2.27 MB / 426.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009347/0.3385, allocations: 292 kB / 426.9 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002485/0.341, allocations: 0.9674 MB / 427.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002289/0.3433, allocations: 1.874 MB / 429.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003151/0.3464, allocations: 2.12 MB / 431.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.357, allocations: 6.486 MB / 438.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.357, allocations: 0 / 438.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.357, allocations: 0 / 438.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002152/0.3572, allocations: 3.938 kB / 438.3 MB, free: 9.18 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.009174/0.3664, allocations: 4.699 MB / 443 MB, free: 4.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.3664, allocations: 11.98 kB / 443 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001003/0.3674, allocations: 0.699 MB / 443.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007835/0.3753, allocations: 1.971 MB / 445.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007244/0.3825, allocations: 3.131 MB / 448.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/0.3827, allocations: 233.6 kB / 449.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007745/0.3835, allocations: 299.8 kB / 449.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01722/0.4007, allocations: 9.639 MB / 459 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.4008, allocations: 43.64 kB / 459 MB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000378/0.4012, allocations: 139.9 kB / 459.2 MB, free: 3.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002977/0.4042, allocations: 1.934 MB / 461.1 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/0.4201, allocations: 7.625 MB / 468.7 MB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04883/0.469, allocations: 37.55 MB / 0.4944 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006527/0.4755, allocations: 2.336 MB / 0.4967 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.4769, allocations: 0.7952 MB / 0.4975 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006893/0.4838, allocations: 3.074 MB / 0.5005 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.898e-05/0.4838, allocations: 55.16 kB / 0.5005 GB, free: 12.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 3.557e-06/0.4838, allocations: 0 / 0.5005 GB, free: 12.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02351/0.5073, allocations: 9.221 MB / 0.5095 GB, free: 3.477 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.5074, allocations: 153.5 kB / 0.5097 GB, free: 3.297 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006257/0.5137, allocations: 3.971 MB / 0.5136 GB, free: 15.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002445/0.5139, allocations: 49.69 kB / 0.5136 GB, free: 15.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002864/0.5168, allocations: 3.228 MB / 0.5168 GB, free: 11.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000872/0.5177, allocations: 0.6242 MB / 0.5174 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001601/0.5193, allocations: 1.167 MB / 0.5185 GB, free: 10.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.5194, allocations: 305.1 kB / 0.5188 GB, free: 9.875 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002848/0.5223, allocations: 1.561 MB / 0.5203 GB, free: 8.309 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006677/0.529, allocations: 5.338 MB / 0.5255 GB, free: 1.074 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/0.5394, allocations: 7.517 MB / 0.5329 GB, free: 7.676 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001338/0.5395, allocations: 40 kB / 0.5329 GB, free: 7.637 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01453/0.5541, allocations: 6.63 MB / 0.5394 GB, free: 1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.5542, allocations: 64 kB / 0.5395 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000175/0.5544, allocations: 132 kB / 0.5396 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001924/0.5546, allocations: 176 kB / 0.5398 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004611/0.5592, allocations: 1.377 MB / 0.5411 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002471/0.5594, allocations: 263 kB / 0.5414 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003929/0.5633, allocations: 287.7 kB / 0.5416 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000703/0.564, allocations: 368 kB / 0.542 GB, free: 14.36 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.004031/0.5681, allocations: 1.974 MB / 0.5439 GB, free: 12.37 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/0.5691, allocations: 357.6 kB / 0.5442 GB, free: 12.02 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.5717, allocations: 1.25 MB / 0.5455 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.817e-05/0.5717, allocations: 16 kB / 0.5455 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.5717, allocations: 7.984 kB / 0.5455 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/0.5717, allocations: 7.922 kB / 0.5455 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.583, allocations: 5.74 MB / 0.5511 GB, free: 4.652 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.785e-05/0.5831, allocations: 19.89 kB / 0.5511 GB, free: 4.637 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.5841, allocations: 280 kB / 0.5514 GB, free: 4.363 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.984e-05/0.5842, allocations: 24 kB / 0.5514 GB, free: 4.34 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.5843, allocations: 52.58 kB / 0.5515 GB, free: 4.289 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.284e-05/0.5843, allocations: 35.86 kB / 0.5515 GB, free: 4.254 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-05/0.5843, allocations: 35.88 kB / 0.5515 GB, free: 4.219 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004523/0.5888, allocations: 3.238 MB / 0.5547 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/0.5902, allocations: 461.4 kB / 0.5551 GB, free: 272 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000427/0.5907, allocations: 47.98 kB / 0.5552 GB, free: 224 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.5918, allocations: 64.19 kB / 0.5552 GB, free: 160 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.592, allocations: 147.3 kB / 0.5554 GB, free: 12 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.1958/0.7878, allocations: 67.72 kB / 0.5554 GB, free: 141.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004482/0.7923, allocations: 2.468 MB / 0.5579 GB, free: 141.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7923, allocations: 2.656 kB / 0.5579 GB, free: 141.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004864/0.7972, allocations: 0.8558 MB / 0.5587 GB, free: 141.2 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.004194/0.8014, allocations: 3.916 MB / 0.5625 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006173/0.8075, allocations: 3.513 MB / 0.5659 GB, free: 137.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.448e-05/0.8075, allocations: 2.562 kB / 0.566 GB, free: 137.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001163/0.8087, allocations: 0.6867 MB / 0.5666 GB, free: 137.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/0.8117, allocations: 449.2 kB / 0.567 GB, free: 137.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04705/0.8588, allocations: 40.56 MB / 0.6067 GB, free: 104.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0026/0.8614, allocations: 3.107 MB / 0.6097 GB, free: 101.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003218/0.8646, allocations: 1.77 MB / 0.6114 GB, free: 99.58 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001714/0.8663, allocations: 1.796 MB / 0.6132 GB, free: 97.78 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/0.8663, allocations: 0 / 0.6132 GB, free: 97.78 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09458/0.9609, allocations: 61.45 MB / 0.6732 GB, free: 36.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.59/22.55, allocations: 6.047 kB / 0.6732 GB, free: 36.27 MB / 478.1 MB " [Timeout remaining time 637] (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: 25.158692193996103]