Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.0009509/0.0009509, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008971/0.0008971, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9046/0.9046, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.864e-05/2.049e-05, allocations: 2.281 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.007258/0.007278, allocations: 9.053 MB / 333.6 MB, free: 6.824 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005946/0.01322, allocations: 3.703 MB / 337.3 MB, free: 3.109 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.0143, allocations: 59.75 kB / 337.4 MB, free: 3.051 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002352/0.01665, allocations: 2.121 MB / 339.5 MB, free: 0.918 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002847/0.0195, allocations: 1.715 MB / 341.2 MB, free: 15.2 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.02054, allocations: 0.7365 MB / 342 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003289/0.02383, allocations: 3.772 MB / 345.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002494/0.02632, allocations: 2.461 MB / 348.2 MB, free: 8.164 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.02853, allocations: 1.902 MB / 350.1 MB, free: 6.258 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001827/0.03036, allocations: 1.894 MB / 352 MB, free: 4.359 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004526/0.03081, allocations: 264 kB / 352.3 MB, free: 4.102 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.03217, allocations: 1.053 MB / 353.3 MB, free: 3.047 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001015/0.03319, allocations: 1.659 MB / 355 MB, free: 1.383 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009227/0.03411, allocations: 1.055 MB / 356 MB, free: 332 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004586/0.03869, allocations: 5.957 MB / 362 MB, free: 10.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.0387, allocations: 0 / 362 MB, free: 10.35 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.0387, allocations: 4 kB / 362 MB, free: 10.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.221e-05/0.03879, allocations: 0 / 362 MB, free: 10.34 MB / 330.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.005561/0.04435, allocations: 4.16 MB / 366.1 MB, free: 6.129 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.0444, allocations: 8.031 kB / 366.2 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005614/0.04496, allocations: 0.6374 MB / 366.8 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003756/0.04872, allocations: 1.987 MB / 368.8 MB, free: 3.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002523/0.05124, allocations: 1.892 MB / 370.7 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.05135, allocations: 201.2 kB / 370.9 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003587/0.05171, allocations: 271.8 kB / 371.1 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/0.06386, allocations: 10.06 MB / 381.2 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.433e-05/0.06394, allocations: 39.64 kB / 381.2 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003361/0.06427, allocations: 135.8 kB / 381.4 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001736/0.06601, allocations: 1.852 MB / 383.2 MB, free: 4.309 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01151/0.07752, allocations: 8.551 MB / 391.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02831/0.1058, allocations: 35.55 MB / 427.3 MB, free: 7.148 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00582/0.1117, allocations: 3.227 MB / 430.5 MB, free: 3.887 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001645/0.1133, allocations: 1.681 MB / 432.2 MB, free: 2.195 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007616/0.1209, allocations: 6.365 MB / 438.6 MB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.1209, allocations: 51.5 kB / 438.6 MB, free: 11.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=150): time 3.587e-06/0.121, allocations: 0 / 438.6 MB, free: 11.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.1824/0.3033, allocations: 18.12 MB / 456.8 MB, free: 113.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.3034, allocations: 144.8 kB / 456.9 MB, free: 113.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003661/0.307, allocations: 3.838 MB / 460.7 MB, free: 111.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.3072, allocations: 45.61 kB / 460.8 MB, free: 111.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007773/0.3079, allocations: 2.815 MB / 463.6 MB, free: 109.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.3083, allocations: 0.6629 MB / 464.3 MB, free: 109.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008278/0.3091, allocations: 1.105 MB / 465.4 MB, free: 108.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.522e-05/0.3091, allocations: 305.1 kB / 465.7 MB, free: 108.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/0.3108, allocations: 1.962 MB / 467.6 MB, free: 107.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002302/0.3131, allocations: 5.391 MB / 473 MB, free: 101.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004784/0.3179, allocations: 7.955 MB / 481 MB, free: 92.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-05/0.318, allocations: 32 kB / 481 MB, free: 92.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.009191/0.3271, allocations: 8.196 MB / 489.2 MB, free: 84.13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.569e-05/0.3272, allocations: 60 kB / 489.3 MB, free: 84.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.969e-05/0.3273, allocations: 124.8 kB / 489.4 MB, free: 83.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002004/0.3293, allocations: 1.296 MB / 490.7 MB, free: 82.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/0.3312, allocations: 1.277 MB / 492 MB, free: 81.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004922/0.3361, allocations: 6.397 MB / 498.3 MB, free: 74.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/0.3389, allocations: 355.7 kB / 498.7 MB, free: 74.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003267/0.3393, allocations: 340 kB / 499 MB, free: 74.2 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.001868/0.3411, allocations: 1.805 MB / 0.4891 GB, free: 72.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003885/0.3415, allocations: 325.8 kB / 0.4894 GB, free: 72.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003713/0.3452, allocations: 3.373 MB / 0.4927 GB, free: 68.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.3453, allocations: 16 kB / 0.4927 GB, free: 68.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.3453, allocations: 4 kB / 0.4927 GB, free: 68.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.3453, allocations: 11.97 kB / 0.4927 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008395/0.3537, allocations: 7.334 MB / 0.4999 GB, free: 61.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.415e-06/0.3537, allocations: 0 / 0.4999 GB, free: 61.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006138/0.3543, allocations: 243.7 kB / 0.5001 GB, free: 61.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001829/0.3561, allocations: 1.116 MB / 0.5012 GB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-05/0.3562, allocations: 31.36 kB / 0.5012 GB, free: 59.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004627/0.3608, allocations: 6.034 MB / 0.5071 GB, free: 53.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3608, allocations: 0 / 0.5071 GB, free: 53.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005656/0.3665, allocations: 5.746 MB / 0.5127 GB, free: 47.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000797/0.3673, allocations: 317.7 kB / 0.5131 GB, free: 47.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/0.3675, allocations: 24 kB / 0.5131 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008055/0.3683, allocations: 135.8 kB / 0.5132 GB, free: 47.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.3685, allocations: 100.8 kB / 0.5133 GB, free: 47.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.703e-05/0.3686, allocations: 57.3 kB / 0.5134 GB, free: 47.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002309/0.3709, allocations: 2.267 MB / 0.5156 GB, free: 45.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3709, allocations: 0 / 0.5156 GB, free: 45.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003492/0.3744, allocations: 0.9803 MB / 0.5165 GB, free: 44.13 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.005636/0.38, allocations: 6.401 MB / 0.5228 GB, free: 37.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0048/0.3848, allocations: 4.614 MB / 0.5273 GB, free: 33.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.3848, allocations: 4 kB / 0.5273 GB, free: 33.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.3861, allocations: 1.445 MB / 0.5287 GB, free: 31.63 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.3877, allocations: 351.9 kB / 0.529 GB, free: 31.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03932/0.427, allocations: 41.63 MB / 0.5697 GB, free: 388 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002397/0.4294, allocations: 2.3 MB / 0.5719 GB, free: 14.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002718/0.4321, allocations: 1.711 MB / 0.5736 GB, free: 12.34 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/0.4337, allocations: 1.59 MB / 0.5752 GB, free: 10.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.313e-06/0.4337, allocations: 0 / 0.5752 GB, free: 10.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2272/0.6609, allocations: 62.24 MB / 0.6359 GB, free: 151.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.247/9.908, allocations: 9.031 kB / 0.6359 GB, free: 151.9 MB / 474.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.797934172675014]