Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.0008337/0.0008337, 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.001312/0.001312, allocations: 157.4 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.8579/0.8579, allocations: 173.4 MB / 200.4 MB, free: 9.418 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.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 318.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.536e-05/1.7e-05, allocations: 2.281 kB / 318.4 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.00657/0.006587, allocations: 6.332 MB / 324.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003591/0.01018, allocations: 2.986 MB / 327.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004652/0.01064, allocations: 31.88 kB / 327.8 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.01174, allocations: 0.8169 MB / 328.6 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001859/0.01359, allocations: 1.396 MB / 330 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009968/0.01459, allocations: 0.526 MB / 330.5 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002368/0.01696, allocations: 2.854 MB / 333.4 MB, free: 7.223 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001445/0.0184, allocations: 1.34 MB / 334.7 MB, free: 5.863 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.01976, allocations: 1.196 MB / 335.9 MB, free: 4.664 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001377/0.02114, allocations: 1.298 MB / 337.2 MB, free: 3.363 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003226/0.02146, allocations: 140 kB / 337.4 MB, free: 3.227 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.02247, allocations: 0.8228 MB / 338.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006241/0.02309, allocations: 1.071 MB / 339.3 MB, free: 1.328 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006339/0.02373, allocations: 0.65 MB / 339.9 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002909/0.02663, allocations: 3.994 MB / 343.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.02664, allocations: 0 / 343.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.02664, allocations: 0 / 343.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.916e-05/0.02672, allocations: 0 / 343.9 MB, free: 12.66 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.003867/0.03059, allocations: 2.927 MB / 346.8 MB, free: 9.691 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.03064, allocations: 12.92 kB / 346.8 MB, free: 9.68 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003547/0.03099, allocations: 454 kB / 347.3 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003221/0.03421, allocations: 1.746 MB / 349 MB, free: 7.477 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.03562, allocations: 1.309 MB / 350.3 MB, free: 6.141 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.135e-05/0.03568, allocations: 123 kB / 350.5 MB, free: 6.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001931/0.03587, allocations: 147.9 kB / 350.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005059/0.04093, allocations: 6.374 MB / 357 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.279e-05/0.04097, allocations: 31.7 kB / 357 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.04112, allocations: 79.89 kB / 357.1 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001294/0.04242, allocations: 1.437 MB / 358.5 MB, free: 13.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005633/0.04805, allocations: 5.681 MB / 364.2 MB, free: 7.742 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01603/0.06408, allocations: 25.42 MB / 389.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00233/0.06641, allocations: 1.78 MB / 391.4 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007982/0.06721, allocations: 0.9364 MB / 392.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.84e-05/0.06725, allocations: 15.98 kB / 392.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.06727, allocations: 46.5 kB / 392.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 2.455e-06/0.06728, allocations: 0 / 392.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.01219/0.07946, allocations: 8.793 MB / 401.2 MB, free: 1.789 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.07953, allocations: 144.5 kB / 401.3 MB, free: 1.617 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002807/0.08234, allocations: 3.154 MB / 404.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.088e-05/0.08239, allocations: 37.7 kB / 404.5 MB, free: 14.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008958/0.08328, allocations: 2.135 MB / 406.7 MB, free: 12.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002768/0.08356, allocations: 456.6 kB / 407.1 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000714/0.08427, allocations: 0.8697 MB / 408 MB, free: 10.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.032e-05/0.08435, allocations: 309.1 kB / 408.3 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.08571, allocations: 1.422 MB / 409.7 MB, free: 9.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002691/0.0884, allocations: 4.242 MB / 413.9 MB, free: 3.508 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004281/0.09268, allocations: 6.129 MB / 420.1 MB, free: 11.97 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.516e-05/0.09271, allocations: 28 kB / 420.1 MB, free: 11.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.006051/0.09876, allocations: 6.117 MB / 426.2 MB, free: 5.816 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.307e-05/0.0988, allocations: 48 kB / 426.3 MB, free: 5.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.02e-05/0.09886, allocations: 100 kB / 426.4 MB, free: 5.672 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.1001, allocations: 0.793 MB / 427.1 MB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.1015, allocations: 0.9981 MB / 428.1 MB, free: 3.875 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003816/0.1053, allocations: 4.349 MB / 432.5 MB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.1069, allocations: 307.5 kB / 432.8 MB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002174/0.1072, allocations: 280 kB / 433.1 MB, free: 14.84 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (533): * Single equations (assignments): 529 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001329/0.1085, allocations: 1.365 MB / 434.4 MB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002252/0.1087, allocations: 250.3 kB / 434.7 MB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.1108, allocations: 1.843 MB / 436.5 MB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.1108, allocations: 12 kB / 436.5 MB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.1109, allocations: 4 kB / 436.5 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.1109, allocations: 15.92 kB / 436.5 MB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005043/0.1159, allocations: 4.571 MB / 441.1 MB, free: 6.691 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.1159, allocations: 4 kB / 441.1 MB, free: 6.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.1162, allocations: 131.8 kB / 441.3 MB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001078/0.1173, allocations: 0.6483 MB / 441.9 MB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-05/0.1174, allocations: 15.98 kB / 441.9 MB, free: 5.891 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003317/0.1207, allocations: 3.853 MB / 445.8 MB, free: 1.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1207, allocations: 8.312 kB / 445.8 MB, free: 1.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1509/0.2716, allocations: 3.684 MB / 449.5 MB, free: 118 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007466/0.2724, allocations: 254.6 kB / 449.7 MB, free: 118 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002074/0.2726, allocations: 22.16 kB / 449.7 MB, free: 118 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005907/0.2732, allocations: 98 kB / 449.8 MB, free: 118 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.2733, allocations: 64.34 kB / 449.9 MB, free: 118 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.2733, allocations: 24.42 kB / 449.9 MB, free: 118 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001837/0.2752, allocations: 1.89 MB / 451.8 MB, free: 117.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2752, allocations: 0 / 451.8 MB, free: 117.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002076/0.2772, allocations: 0.7386 MB / 452.5 MB, free: 117.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (75): * Single equations (assignments): 71 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003315/0.2805, allocations: 4.335 MB / 456.9 MB, free: 115.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002881/0.2834, allocations: 3.29 MB / 460.2 MB, free: 114.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2834, allocations: 3.938 kB / 460.2 MB, free: 114.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006326/0.2841, allocations: 0.8753 MB / 461 MB, free: 114.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009527/0.285, allocations: 255.4 kB / 461.3 MB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0228/0.3078, allocations: 30.61 MB / 491.9 MB, free: 80.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.3089, allocations: 1.617 MB / 493.5 MB, free: 79.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001594/0.3105, allocations: 1.407 MB / 494.9 MB, free: 77.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000725/0.3112, allocations: 1.063 MB / 496 MB, free: 76.83 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/0.3112, allocations: 0 / 496 MB, free: 76.83 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05417/0.3654, allocations: 43.48 MB / 0.5268 GB, free: 33.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.709/9.074, allocations: 7.922 kB / 0.5268 GB, free: 33.87 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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: 10.86371318437159]