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.00171/0.00171, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002205/0.002205, allocations: 183.1 kB / 23.72 MB, free: 4.699 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.477/1.477, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.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 0.001552/0.001552, allocations: 51.92 kB / 370.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2713, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009524/0.2808, allocations: 7.178 MB / 429.8 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006561/0.2874, allocations: 3.185 MB / 433 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009623/0.2883, allocations: 39.81 kB / 433 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002092/0.2904, allocations: 0.8131 MB / 433.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00346/0.2939, allocations: 1.345 MB / 435.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.2951, allocations: 495 kB / 435.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003967/0.299, allocations: 2.534 MB / 438.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001754/0.3008, allocations: 1.094 MB / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001349/0.3022, allocations: 0.7822 MB / 440.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.3041, allocations: 1.207 MB / 441.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003861/0.3045, allocations: 132 kB / 441.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.3063, allocations: 0.9242 MB / 442.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.3074, allocations: 1.016 MB / 443.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.3089, allocations: 1.203 MB / 444.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00514/0.314, allocations: 3.987 MB / 448.6 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.314, allocations: 0 / 448.6 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.314, allocations: 0 / 448.6 MB, free: 4.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.744e-05/0.3141, allocations: 4 kB / 448.6 MB, free: 4.551 MB / 350.1 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.005544/0.3196, allocations: 2.888 MB / 451.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3197, allocations: 12.03 kB / 451.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000573/0.3202, allocations: 450 kB / 451.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006002/0.3262, allocations: 1.676 MB / 453.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00362/0.3299, allocations: 1.575 MB / 455.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.33, allocations: 118.9 kB / 455.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000364/0.3303, allocations: 155.8 kB / 455.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/0.341, allocations: 6.363 MB / 461.8 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.939e-05/0.341, allocations: 31.69 kB / 461.8 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002669/0.3413, allocations: 83.89 kB / 461.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002691/0.344, allocations: 1.437 MB / 463.3 MB, free: 5.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01102/0.355, allocations: 5.669 MB / 469 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03581/0.3908, allocations: 26.14 MB / 495.1 MB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004367/0.3952, allocations: 1.735 MB / 496.9 MB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.3967, allocations: 0.9476 MB / 497.8 MB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.524e-05/0.3968, allocations: 11.98 kB / 497.8 MB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.3968, allocations: 50.77 kB / 497.9 MB, free: 1.715 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.587e-06/0.3968, allocations: 3.938 kB / 497.9 MB, free: 1.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02218/0.419, allocations: 8.502 MB / 0.4945 GB, free: 9.133 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.4191, allocations: 136.5 kB / 0.4947 GB, free: 8.969 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004252/0.4233, allocations: 2.832 MB / 0.4974 GB, free: 6.121 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001935/0.4235, allocations: 41.7 kB / 0.4975 GB, free: 6.074 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001935/0.4255, allocations: 2.166 MB / 0.4996 GB, free: 3.887 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005857/0.4261, allocations: 452.6 kB / 0.5 GB, free: 3.441 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/0.4273, allocations: 0.8893 MB / 0.5009 GB, free: 2.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4274, allocations: 301.1 kB / 0.5012 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/0.4297, allocations: 1.406 MB / 0.5025 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004951/0.4346, allocations: 4.242 MB / 0.5067 GB, free: 11.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008062/0.4427, allocations: 6.117 MB / 0.5127 GB, free: 3.629 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/0.4428, allocations: 32 kB / 0.5127 GB, free: 3.598 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01244/0.4552, allocations: 6.091 MB / 0.5186 GB, free: 13.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.365e-05/0.4553, allocations: 48 kB / 0.5187 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/0.4554, allocations: 103.9 kB / 0.5188 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00243/0.4579, allocations: 0.7931 MB / 0.5196 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003125/0.461, allocations: 0.9865 MB / 0.5205 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006412/0.4674, allocations: 4.376 MB / 0.5248 GB, free: 7.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003104/0.4705, allocations: 247.6 kB / 0.525 GB, free: 6.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006295/0.4711, allocations: 276 kB / 0.5253 GB, free: 6.562 MB / 446.1 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.002321/0.4735, allocations: 1.368 MB / 0.5266 GB, free: 5.184 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004691/0.4739, allocations: 242.4 kB / 0.5269 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004095/0.478, allocations: 1.845 MB / 0.5287 GB, free: 3.082 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.734e-05/0.4781, allocations: 15.94 kB / 0.5287 GB, free: 3.066 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.4781, allocations: 4 kB / 0.5287 GB, free: 3.062 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.4781, allocations: 3.984 kB / 0.5287 GB, free: 3.059 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.4884, allocations: 4.754 MB / 0.5333 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.4884, allocations: 4.062 kB / 0.5333 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006875/0.4891, allocations: 131.8 kB / 0.5335 GB, free: 14.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/0.4911, allocations: 0.6444 MB / 0.5341 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.4912, allocations: 20 kB / 0.5341 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005616/0.4969, allocations: 3.85 MB / 0.5379 GB, free: 9.461 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.4969, allocations: 8.094 kB / 0.5379 GB, free: 9.453 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006556/0.5034, allocations: 3.701 MB / 0.5415 GB, free: 5.727 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006688/0.5041, allocations: 218.2 kB / 0.5417 GB, free: 5.512 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/0.5044, allocations: 23.92 kB / 0.5417 GB, free: 5.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009449/0.5053, allocations: 59.91 kB / 0.5418 GB, free: 5.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.5055, allocations: 55.89 kB / 0.5418 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.21e-05/0.5056, allocations: 28 kB / 0.5418 GB, free: 5.348 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003057/0.5086, allocations: 1.758 MB / 0.5436 GB, free: 3.582 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5086, allocations: 4 kB / 0.5436 GB, free: 3.578 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003472/0.5121, allocations: 0.6483 MB / 0.5442 GB, free: 2.93 MB / 462.1 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.2239/0.736, allocations: 4.307 MB / 0.5484 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005379/0.7414, allocations: 3.294 MB / 0.5516 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.7414, allocations: 0 / 0.5516 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.7425, allocations: 0.8729 MB / 0.5525 GB, free: 120.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.7442, allocations: 249.6 kB / 0.5527 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03501/0.7792, allocations: 30.25 MB / 0.5823 GB, free: 93.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00232/0.7815, allocations: 2.189 MB / 0.5844 GB, free: 91.69 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002757/0.7843, allocations: 1.397 MB / 0.5858 GB, free: 90.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/0.7857, allocations: 1.05 MB / 0.5868 GB, free: 89.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.873e-06/0.7857, allocations: 0 / 0.5868 GB, free: 89.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0859/0.8716, allocations: 45.56 MB / 0.6313 GB, free: 44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.37/21.24, allocations: 3.125 kB / 0.6313 GB, free: 44 MB / 462.1 MB " [Timeout remaining time 639] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/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: 23.91254876899984]