Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007975/0.0007975, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007686/0.0007686, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9028/0.9028, allocations: 173.3 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.555e-06/2.555e-06, allocations: 4 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.907e-05/2.162e-05, allocations: 6.281 kB / 318.4 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.007391/0.007413, allocations: 9.053 MB / 327.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005556/0.01297, allocations: 3.691 MB / 331.2 MB, free: 9.523 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/0.01411, allocations: 71.62 kB / 331.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002507/0.01661, allocations: 2.125 MB / 333.4 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003176/0.01979, allocations: 1.749 MB / 335.1 MB, free: 5.566 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.02093, allocations: 0.7405 MB / 335.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003454/0.02439, allocations: 3.707 MB / 339.6 MB, free: 1.109 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002112/0.0265, allocations: 2.461 MB / 342 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.02842, allocations: 1.925 MB / 344 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.03019, allocations: 1.894 MB / 345.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003596/0.03055, allocations: 268 kB / 346.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001732/0.03228, allocations: 1.069 MB / 347.2 MB, free: 9.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001099/0.03338, allocations: 1.679 MB / 348.9 MB, free: 7.746 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008923/0.03428, allocations: 1.075 MB / 349.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004952/0.03923, allocations: 6.004 MB / 355.9 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.03923, allocations: 0 / 355.9 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.03923, allocations: 0 / 355.9 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001321/0.03937, allocations: 4 kB / 356 MB, free: 0.6406 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.005487/0.04485, allocations: 4.184 MB / 360.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.0449, allocations: 12.92 kB / 360.1 MB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005596/0.04546, allocations: 0.6335 MB / 360.8 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00389/0.04935, allocations: 1.987 MB / 362.8 MB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002711/0.05206, allocations: 1.9 MB / 364.7 MB, free: 7.812 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.05218, allocations: 201.2 kB / 364.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003615/0.05254, allocations: 271.8 kB / 365.1 MB, free: 7.348 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01253/0.06507, allocations: 10.03 MB / 375.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-05/0.06514, allocations: 39.69 kB / 375.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002782/0.06542, allocations: 139.9 kB / 375.3 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001757/0.06718, allocations: 1.852 MB / 377.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/0.07984, allocations: 8.516 MB / 385.7 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03045/0.1103, allocations: 35.56 MB / 421.3 MB, free: 13.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005814/0.1161, allocations: 3.185 MB / 424.4 MB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/0.1179, allocations: 1.691 MB / 426.1 MB, free: 8.551 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007419/0.1253, allocations: 6.361 MB / 432.5 MB, free: 2.148 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.1253, allocations: 51.55 kB / 432.5 MB, free: 2.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 4.027e-06/0.1253, allocations: 0 / 432.5 MB, free: 2.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.03118/0.1565, allocations: 18 MB / 450.6 MB, free: 36 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1659/0.3225, allocations: 147.2 kB / 450.7 MB, free: 121.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006287/0.3288, allocations: 3.843 MB / 454.5 MB, free: 120.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004107/0.3292, allocations: 46.23 kB / 454.6 MB, free: 120.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000943/0.3301, allocations: 2.824 MB / 457.4 MB, free: 119.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005703/0.3307, allocations: 0.658 MB / 458.1 MB, free: 118.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009529/0.3316, allocations: 1.103 MB / 459.2 MB, free: 118.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.261e-05/0.3317, allocations: 301.1 kB / 459.5 MB, free: 117.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001971/0.3336, allocations: 1.953 MB / 461.4 MB, free: 117.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002685/0.3363, allocations: 5.371 MB / 466.8 MB, free: 112.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00582/0.3421, allocations: 7.929 MB / 474.7 MB, free: 103.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.844e-05/0.3422, allocations: 39.31 kB / 474.8 MB, free: 103.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.0112/0.3534, allocations: 8.192 MB / 482.9 MB, free: 96.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.893e-05/0.3535, allocations: 56 kB / 483 MB, free: 95.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.269e-05/0.3536, allocations: 120 kB / 483.1 MB, free: 95.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00213/0.3557, allocations: 1.292 MB / 484.4 MB, free: 94.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002762/0.3585, allocations: 1.259 MB / 485.7 MB, free: 93.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005487/0.364, allocations: 6.398 MB / 492.1 MB, free: 86.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003427/0.3674, allocations: 347.6 kB / 492.4 MB, free: 86.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005931/0.368, allocations: 344 kB / 492.7 MB, free: 86.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002244/0.3702, allocations: 1.818 MB / 494.6 MB, free: 84.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006244/0.3708, allocations: 317.8 kB / 494.9 MB, free: 83.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00401/0.3749, allocations: 3.346 MB / 498.2 MB, free: 80.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.689e-05/0.3749, allocations: 21.95 kB / 498.2 MB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.3749, allocations: 7.938 kB / 498.2 MB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.3749, allocations: 3.984 kB / 498.3 MB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009507/0.3844, allocations: 7.306 MB / 0.4937 GB, free: 73.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/0.3844, allocations: 4 kB / 0.4937 GB, free: 73.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006696/0.3851, allocations: 239.7 kB / 0.4939 GB, free: 73.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.387, allocations: 1.12 MB / 0.495 GB, free: 71.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/0.3871, allocations: 31.38 kB / 0.4951 GB, free: 71.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004666/0.3918, allocations: 6.027 MB / 0.501 GB, free: 65.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3918, allocations: 3.938 kB / 0.501 GB, free: 65.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005441/0.3972, allocations: 5.705 MB / 0.5065 GB, free: 60.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008682/0.3981, allocations: 321.7 kB / 0.5068 GB, free: 59.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.3983, allocations: 20 kB / 0.5069 GB, free: 59.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007966/0.3991, allocations: 138.4 kB / 0.507 GB, free: 59.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.3993, allocations: 88.83 kB / 0.5071 GB, free: 59.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-05/0.3994, allocations: 51.27 kB / 0.5071 GB, free: 59.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002188/0.4016, allocations: 2.279 MB / 0.5093 GB, free: 57.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.4016, allocations: 0 / 0.5093 GB, free: 57.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003667/0.4052, allocations: 0.9998 MB / 0.5103 GB, free: 56.14 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00557/0.4108, allocations: 6.38 MB / 0.5166 GB, free: 49.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005008/0.4158, allocations: 4.605 MB / 0.521 GB, free: 45.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.4158, allocations: 0 / 0.521 GB, free: 45.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001397/0.4172, allocations: 1.425 MB / 0.5224 GB, free: 43.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/0.419, allocations: 358 kB / 0.5228 GB, free: 43.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04091/0.4599, allocations: 41.58 MB / 0.5634 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/0.4621, allocations: 2.309 MB / 0.5656 GB, free: 10.16 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002428/0.4645, allocations: 1.703 MB / 0.5673 GB, free: 8.449 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001665/0.4661, allocations: 1.602 MB / 0.5689 GB, free: 6.848 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/0.4662, allocations: 0 / 0.5689 GB, free: 6.848 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2253/0.6915, allocations: 62.56 MB / 0.63 GB, free: 139.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.33/10.02, allocations: 19.98 kB / 0.63 GB, free: 139.4 MB / 458.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0019992 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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: 11.935780215077102]