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.001812/0.001812, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 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.002029/0.002029, allocations: 183.5 kB / 23.7 MB, free: 4.191 MB / 14.72 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 1.409/1.409, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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 0.0016/0.0016, allocations: 43.94 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2736, allocations: 52.2 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01275/0.2864, allocations: 9.051 MB / 431.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007975/0.2944, allocations: 3.676 MB / 435.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.2955, allocations: 63.75 kB / 435.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004132/0.2997, allocations: 2.032 MB / 437.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004052/0.3037, allocations: 1.683 MB / 439.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.3053, allocations: 0.7018 MB / 439.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004678/0.31, allocations: 3.364 MB / 443.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002792/0.3128, allocations: 2.2 MB / 445.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001855/0.3146, allocations: 1.289 MB / 446.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002596/0.3172, allocations: 1.799 MB / 448.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000584/0.3178, allocations: 260 kB / 448.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002006/0.3198, allocations: 1.022 MB / 449.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001675/0.3215, allocations: 1.609 MB / 451.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001734/0.3232, allocations: 1.386 MB / 452.7 MB, free: 100 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00705/0.3303, allocations: 5.995 MB / 458.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3303, allocations: 3.938 kB / 458.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3303, allocations: 4 kB / 458.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001202/0.3304, allocations: 0 / 458.7 MB, free: 10.07 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007805/0.3382, allocations: 4.16 MB / 462.9 MB, free: 5.852 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3383, allocations: 8.031 kB / 462.9 MB, free: 5.844 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008328/0.3391, allocations: 0.6452 MB / 463.5 MB, free: 5.188 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006787/0.3459, allocations: 1.886 MB / 465.4 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005441/0.3513, allocations: 2.165 MB / 467.6 MB, free: 1.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.3515, allocations: 213.1 kB / 467.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006895/0.3522, allocations: 267.8 kB / 468.1 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01942/0.3716, allocations: 10.04 MB / 478.1 MB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.008e-05/0.3717, allocations: 35.64 kB / 478.1 MB, free: 5.855 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003413/0.3721, allocations: 131.9 kB / 478.3 MB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003274/0.3754, allocations: 1.856 MB / 480.1 MB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01806/0.3934, allocations: 8.513 MB / 488.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04752/0.4409, allocations: 35.45 MB / 0.5118 GB, free: 6.855 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/0.4509, allocations: 3.067 MB / 0.5148 GB, free: 3.758 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002604/0.4535, allocations: 1.694 MB / 0.5164 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.4644, allocations: 6.255 MB / 0.5226 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/0.4645, allocations: 51.5 kB / 0.5226 GB, free: 11.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.258e-06/0.4645, allocations: 0 / 0.5226 GB, free: 11.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2419/0.7064, allocations: 17.45 MB / 0.5396 GB, free: 108 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.7065, allocations: 149.1 kB / 0.5398 GB, free: 107.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003806/0.7103, allocations: 3.683 MB / 0.5434 GB, free: 106.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001805/0.7105, allocations: 54.34 kB / 0.5434 GB, free: 106.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.7115, allocations: 2.858 MB / 0.5462 GB, free: 104.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004064/0.7119, allocations: 0.668 MB / 0.5469 GB, free: 104 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001111/0.713, allocations: 1.121 MB / 0.548 GB, free: 103.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.505e-05/0.7131, allocations: 309.1 kB / 0.5483 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00219/0.7153, allocations: 1.944 MB / 0.5502 GB, free: 102.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003166/0.7184, allocations: 5.363 MB / 0.5554 GB, free: 97.19 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006496/0.7249, allocations: 7.922 MB / 0.5631 GB, free: 88.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.334e-05/0.725, allocations: 36 kB / 0.5632 GB, free: 88.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01327/0.7383, allocations: 8.146 MB / 0.5711 GB, free: 80.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-05/0.7384, allocations: 56 kB / 0.5712 GB, free: 80.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/0.7385, allocations: 124 kB / 0.5713 GB, free: 79.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003732/0.7422, allocations: 1.296 MB / 0.5726 GB, free: 78.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003552/0.7457, allocations: 1.263 MB / 0.5738 GB, free: 77.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007268/0.753, allocations: 6.375 MB / 0.58 GB, free: 70.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003883/0.7569, allocations: 295.7 kB / 0.5803 GB, free: 70.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005352/0.7574, allocations: 344 kB / 0.5806 GB, free: 70.24 MB / 446.1 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.002148/0.7596, allocations: 1.814 MB / 0.5824 GB, free: 68.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000503/0.7601, allocations: 321.8 kB / 0.5827 GB, free: 68.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006046/0.7661, allocations: 3.351 MB / 0.586 GB, free: 64.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.076e-05/0.7662, allocations: 16 kB / 0.586 GB, free: 64.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/0.7662, allocations: 4 kB / 0.586 GB, free: 64.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.7662, allocations: 11.97 kB / 0.586 GB, free: 64.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/0.7778, allocations: 7.247 MB / 0.5931 GB, free: 57.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.7778, allocations: 0 / 0.5931 GB, free: 57.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.7788, allocations: 244.5 kB / 0.5933 GB, free: 57.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003376/0.7822, allocations: 1.119 MB / 0.5944 GB, free: 56.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.7823, allocations: 31.94 kB / 0.5944 GB, free: 56.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006863/0.7892, allocations: 6.015 MB / 0.6003 GB, free: 49.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.7892, allocations: 8.016 kB / 0.6003 GB, free: 49.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008202/0.7974, allocations: 5.708 MB / 0.6059 GB, free: 44.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009352/0.7983, allocations: 297.7 kB / 0.6062 GB, free: 43.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003853/0.7987, allocations: 24 kB / 0.6062 GB, free: 43.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/0.8, allocations: 91.88 kB / 0.6063 GB, free: 43.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.8002, allocations: 84.83 kB / 0.6064 GB, free: 43.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.8003, allocations: 47.98 kB / 0.6064 GB, free: 43.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002502/0.8028, allocations: 2.154 MB / 0.6085 GB, free: 41.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.8028, allocations: 0 / 0.6085 GB, free: 41.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003821/0.8066, allocations: 0.9139 MB / 0.6094 GB, free: 40.59 MB / 446.1 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.008181/0.8148, allocations: 6.367 MB / 0.6156 GB, free: 34.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00596/0.8208, allocations: 4.571 MB / 0.6201 GB, free: 29.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.8208, allocations: 0 / 0.6201 GB, free: 29.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.8226, allocations: 1.433 MB / 0.6215 GB, free: 28.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.8246, allocations: 359.7 kB / 0.6218 GB, free: 27.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05425/0.8788, allocations: 41.28 MB / 0.6622 GB, free: 13.28 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003151/0.882, allocations: 2.305 MB / 0.6644 GB, free: 10.94 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003956/0.8859, allocations: 1.699 MB / 0.6661 GB, free: 9.234 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00219/0.8881, allocations: 1.581 MB / 0.6676 GB, free: 7.652 MB / 478.1 MB Notification: Performance of SimCode: time 6.91e-07/0.8881, allocations: 0 / 0.6676 GB, free: 7.652 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1233/1.011, allocations: 60.96 MB / 0.7271 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.88/16.89, allocations: 0 / 0.7271 GB, free: 11.37 MB / 0.5294 GB " [Timeout remaining time 643] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/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: 19.638543915003538]