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.001605/0.001605, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.001643/0.001643, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.51/1.51, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.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.001493/0.001493, allocations: 47.91 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.103, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009299/0.1123, allocations: 7.144 MB / 424.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006408/0.1187, allocations: 3.181 MB / 428.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007617/0.1194, allocations: 39.81 kB / 428.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.1212, allocations: 0.7937 MB / 428.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.1242, allocations: 1.343 MB / 430.3 MB, free: 56 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001125/0.1253, allocations: 0.4912 MB / 430.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003454/0.1288, allocations: 2.531 MB / 433.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001436/0.1302, allocations: 1.017 MB / 434.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.1313, allocations: 0.7822 MB / 435.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001641/0.133, allocations: 1.211 MB / 436.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003029/0.1333, allocations: 136 kB / 436.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001611/0.1349, allocations: 0.9203 MB / 437.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.1359, allocations: 1.016 MB / 438.4 MB, free: 7.914 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001242/0.1372, allocations: 1.199 MB / 439.6 MB, free: 6.707 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004693/0.1419, allocations: 3.995 MB / 443.6 MB, free: 2.695 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1419, allocations: 0 / 443.6 MB, free: 2.695 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1419, allocations: 0 / 443.6 MB, free: 2.695 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.993e-05/0.1419, allocations: 4 kB / 443.6 MB, free: 2.691 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.207/0.3489, allocations: 2.956 MB / 446.5 MB, free: 28.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.349, allocations: 12.31 kB / 446.6 MB, free: 28.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007345/0.3497, allocations: 450.1 kB / 447 MB, free: 28.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006003/0.3557, allocations: 1.667 MB / 448.7 MB, free: 28.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002812/0.3585, allocations: 1.638 MB / 450.3 MB, free: 28.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.6e-05/0.3586, allocations: 118.8 kB / 450.4 MB, free: 28.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003562/0.359, allocations: 158.9 kB / 450.6 MB, free: 28.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009835/0.3688, allocations: 6.367 MB / 456.9 MB, free: 26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.457e-05/0.3689, allocations: 33.17 kB / 457 MB, free: 25.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002615/0.3691, allocations: 78.45 kB / 457 MB, free: 25.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002647/0.3718, allocations: 1.435 MB / 458.5 MB, free: 25.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.3826, allocations: 5.668 MB / 464.2 MB, free: 24.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02513/0.4077, allocations: 26.25 MB / 490.4 MB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003711/0.4114, allocations: 2.195 MB / 492.6 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.4128, allocations: 0.9448 MB / 493.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.095e-05/0.4129, allocations: 11.98 kB / 493.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.4129, allocations: 46.5 kB / 493.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.226e-06/0.4129, allocations: 224 / 493.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.02195/0.4348, allocations: 8.713 MB / 0.4905 GB, free: 6.094 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.645e-05/0.4349, allocations: 140.5 kB / 0.4907 GB, free: 5.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004028/0.439, allocations: 2.836 MB / 0.4934 GB, free: 3.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002062/0.4392, allocations: 37.7 kB / 0.4935 GB, free: 3.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00182/0.441, allocations: 2.163 MB / 0.4956 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005772/0.4416, allocations: 452.7 kB / 0.496 GB, free: 408 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001223/0.4428, allocations: 0.8855 MB / 0.4969 GB, free: 15.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4429, allocations: 309.1 kB / 0.4972 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002265/0.4452, allocations: 1.406 MB / 0.4986 GB, free: 13.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004846/0.45, allocations: 4.241 MB / 0.5027 GB, free: 8.105 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008075/0.4581, allocations: 6.12 MB / 0.5087 GB, free: 0.582 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.867e-05/0.4582, allocations: 36 kB / 0.5087 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01191/0.4701, allocations: 6.085 MB / 0.5147 GB, free: 10.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.671e-05/0.4702, allocations: 48 kB / 0.5147 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/0.4703, allocations: 107.9 kB / 0.5148 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002406/0.4727, allocations: 0.8009 MB / 0.5156 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002986/0.4757, allocations: 0.9786 MB / 0.5165 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006313/0.482, allocations: 4.471 MB / 0.5209 GB, free: 3.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/0.4852, allocations: 245 kB / 0.5211 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005683/0.4858, allocations: 283.9 kB / 0.5214 GB, free: 3.398 MB / 414.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.002094/0.4879, allocations: 1.377 MB / 0.5228 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004397/0.4883, allocations: 242.4 kB / 0.523 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004042/0.4924, allocations: 1.842 MB / 0.5248 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.623e-05/0.4924, allocations: 12 kB / 0.5248 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.4924, allocations: 8 kB / 0.5248 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.4924, allocations: 3.984 kB / 0.5248 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009582/0.502, allocations: 4.788 MB / 0.5295 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.502, allocations: 7.938 kB / 0.5295 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000673/0.5027, allocations: 131.8 kB / 0.5296 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002158/0.5048, allocations: 0.6448 MB / 0.5302 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.505, allocations: 24.86 kB / 0.5303 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005603/0.5106, allocations: 3.953 MB / 0.5341 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5106, allocations: 0 / 0.5341 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006447/0.517, allocations: 3.69 MB / 0.5377 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007215/0.5177, allocations: 303.3 kB / 0.538 GB, free: 2.082 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000256/0.518, allocations: 19.98 kB / 0.538 GB, free: 2.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008814/0.5189, allocations: 62.17 kB / 0.5381 GB, free: 2.004 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.5191, allocations: 60.78 kB / 0.5382 GB, free: 1.945 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.387e-05/0.5192, allocations: 36.05 kB / 0.5382 GB, free: 1.91 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002879/0.522, allocations: 1.758 MB / 0.5399 GB, free: 148 kB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.522, allocations: 0 / 0.5399 GB, free: 148 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.003331/0.5254, allocations: 0.6483 MB / 0.5405 GB, free: 15.5 MB / 446.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.006721/0.5321, allocations: 4.314 MB / 0.5448 GB, free: 11.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005775/0.5379, allocations: 3.289 MB / 0.548 GB, free: 7.867 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.5379, allocations: 0 / 0.548 GB, free: 7.867 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.5392, allocations: 0.8731 MB / 0.5488 GB, free: 6.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.5409, allocations: 263.9 kB / 0.5491 GB, free: 6.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04843/0.5893, allocations: 30.21 MB / 0.5786 GB, free: 4.684 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002694/0.592, allocations: 2.182 MB / 0.5807 GB, free: 2.473 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003117/0.5951, allocations: 1.397 MB / 0.5821 GB, free: 1.07 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/0.5968, allocations: 1.05 MB / 0.5831 GB, free: 20 kB / 478.1 MB Notification: Performance of SimCode: time 1.292e-06/0.5968, allocations: 0 / 0.5831 GB, free: 20 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09355/0.6903, allocations: 41.98 MB / 0.6241 GB, free: 6.285 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.8/19.49, allocations: 20.02 kB / 0.6241 GB, free: 6.266 MB / 0.5137 GB " [Timeout remaining time 640] (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: 22.404689544811845]