Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008554/0.0008554, allocations: 79.7 kB / 21.43 MB, free: 3.129 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.003979/0.003979, allocations: 167.7 kB / 24.7 MB, free: 9.422 MB / 18.57 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 0.8607/0.8607, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.667e-05/1.837e-05, allocations: 2.281 kB / 298.4 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1432/0.1432, allocations: 9.091 MB / 307.5 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005846/0.1491, allocations: 3.667 MB / 311.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.1501, allocations: 70.06 kB / 311.3 MB, free: 8.668 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002631/0.1527, allocations: 2.136 MB / 313.4 MB, free: 7.754 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003094/0.1558, allocations: 1.74 MB / 315.2 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.1576, allocations: 0.7465 MB / 315.9 MB, free: 6.637 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004697/0.1623, allocations: 3.73 MB / 319.6 MB, free: 5.168 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00301/0.1653, allocations: 2.483 MB / 322.1 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00294/0.1683, allocations: 1.936 MB / 324 MB, free: 2.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002364/0.1706, allocations: 1.898 MB / 325.9 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008359/0.1715, allocations: 266.4 kB / 326.2 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001588/0.1731, allocations: 1.061 MB / 327.3 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.1743, allocations: 1.693 MB / 329 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001751/0.1761, allocations: 1.076 MB / 330 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005394/0.1815, allocations: 6.019 MB / 336.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1815, allocations: 9.875 kB / 336.1 MB, free: 8.984 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1815, allocations: 0 / 336.1 MB, free: 8.984 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.827e-05/0.1816, allocations: 0 / 336.1 MB, free: 8.984 MB / 298.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.005223/0.1868, allocations: 4.191 MB / 340.3 MB, free: 4.738 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.1868, allocations: 15.97 kB / 340.3 MB, free: 4.723 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005505/0.1874, allocations: 0.6413 MB / 340.9 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003725/0.1911, allocations: 1.987 MB / 342.9 MB, free: 2.074 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002821/0.1939, allocations: 2.049 MB / 344.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.194, allocations: 209.1 kB / 345.2 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003389/0.1944, allocations: 267.8 kB / 345.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01125/0.2056, allocations: 10.03 MB / 355.4 MB, free: 4.805 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.999e-05/0.2057, allocations: 39.64 kB / 355.5 MB, free: 4.766 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002523/0.2059, allocations: 131.9 kB / 355.6 MB, free: 4.637 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001717/0.2077, allocations: 1.856 MB / 357.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01198/0.2196, allocations: 8.521 MB / 366 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03132/0.251, allocations: 35.62 MB / 401.6 MB, free: 5.609 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006319/0.2573, allocations: 3.2 MB / 404.8 MB, free: 2.375 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.2592, allocations: 1.687 MB / 406.5 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008196/0.2674, allocations: 6.384 MB / 412.9 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.2674, allocations: 55.44 kB / 412.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 4.999e-06/0.2674, allocations: 4 kB / 412.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.0306/0.298, allocations: 18.11 MB / 431 MB, free: 8.027 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.2981, allocations: 145.5 kB / 431.2 MB, free: 7.852 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004157/0.3022, allocations: 3.903 MB / 435.1 MB, free: 3.945 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003311/0.3026, allocations: 45.7 kB / 435.1 MB, free: 3.895 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001308/0.3039, allocations: 2.823 MB / 438 MB, free: 1.047 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005888/0.3045, allocations: 0.6628 MB / 438.6 MB, free: 388 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/0.3055, allocations: 1.1 MB / 439.7 MB, free: 15.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.032e-05/0.3056, allocations: 305.1 kB / 440 MB, free: 14.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/0.3076, allocations: 1.947 MB / 442 MB, free: 13.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003501/0.3111, allocations: 5.373 MB / 447.3 MB, free: 5.926 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006491/0.3176, allocations: 7.929 MB / 455.3 MB, free: 12.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.35e-05/0.3177, allocations: 36 kB / 455.3 MB, free: 12.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01065/0.3284, allocations: 8.182 MB / 463.5 MB, free: 4.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.3284, allocations: 56 kB / 463.5 MB, free: 4.016 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001006/0.3285, allocations: 120.5 kB / 463.7 MB, free: 3.898 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002224/0.3307, allocations: 1.293 MB / 464.9 MB, free: 2.602 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002528/0.3333, allocations: 1.264 MB / 466.2 MB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.147/0.4803, allocations: 6.388 MB / 472.6 MB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003028/0.4833, allocations: 362.2 kB / 473 MB, free: 131.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005818/0.4839, allocations: 344 kB / 473.3 MB, free: 131.3 MB / 426.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.002498/0.4864, allocations: 1.809 MB / 475.1 MB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006749/0.4871, allocations: 323.3 kB / 475.4 MB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00512/0.4922, allocations: 3.356 MB / 478.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-05/0.4922, allocations: 18.78 kB / 478.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.4922, allocations: 7.938 kB / 478.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.4923, allocations: 8.094 kB / 478.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01134/0.5036, allocations: 7.309 MB / 486.1 MB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/0.5036, allocations: 5.062 kB / 486.1 MB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007615/0.5044, allocations: 238.5 kB / 486.3 MB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002234/0.5066, allocations: 1.124 MB / 487.5 MB, free: 127 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001513/0.5068, allocations: 28.09 kB / 487.5 MB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005326/0.5121, allocations: 6.028 MB / 493.5 MB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5121, allocations: 3.594 kB / 493.5 MB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005557/0.5176, allocations: 5.714 MB / 499.2 MB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.5188, allocations: 0.547 MB / 499.8 MB, free: 122 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002444/0.5191, allocations: 23.88 kB / 499.8 MB, free: 122 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007994/0.5199, allocations: 131.2 kB / 499.9 MB, free: 122 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.5201, allocations: 93.31 kB / 0.4883 GB, free: 122 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.437e-05/0.5201, allocations: 51.78 kB / 0.4884 GB, free: 122 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002342/0.5225, allocations: 2.315 MB / 0.4906 GB, free: 120.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/0.5225, allocations: 0 / 0.4906 GB, free: 120.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003133/0.5256, allocations: 1.003 MB / 0.4916 GB, free: 120.7 MB / 426.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.005399/0.531, allocations: 6.375 MB / 0.4978 GB, free: 115.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004857/0.5359, allocations: 4.592 MB / 0.5023 GB, free: 110.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5359, allocations: 7.062 kB / 0.5023 GB, free: 110.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.5371, allocations: 1.429 MB / 0.5037 GB, free: 109.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.5387, allocations: 367.2 kB / 0.5041 GB, free: 108.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03775/0.5765, allocations: 41.77 MB / 0.5449 GB, free: 61.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001641/0.5781, allocations: 2.311 MB / 0.5471 GB, free: 59.42 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002252/0.5804, allocations: 1.711 MB / 0.5488 GB, free: 57.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/0.5816, allocations: 1.598 MB / 0.5503 GB, free: 56.11 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5816, allocations: 0 / 0.5503 GB, free: 56.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07658/0.6582, allocations: 62.86 MB / 0.6117 GB, free: 9.066 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.567/10.23, allocations: 19.7 kB / 0.6118 GB, free: 9.047 MB / 442.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 12.155001037754118]