Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.001898/0.001898, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001967/0.001967, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.483/1.483, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.Pendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 51.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1141, allocations: 53.33 MB / 426.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.2575/0.3716, allocations: 7.131 MB / 433.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006293/0.3779, allocations: 3.182 MB / 436.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008/0.3787, allocations: 39.41 kB / 436.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.3809, allocations: 0.8013 MB / 437.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003605/0.3845, allocations: 1.318 MB / 438.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.3858, allocations: 491.4 kB / 439.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004318/0.3901, allocations: 2.562 MB / 441.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001856/0.392, allocations: 1.019 MB / 442.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001392/0.3934, allocations: 0.7618 MB / 443.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001974/0.3954, allocations: 1.214 MB / 444.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004015/0.3958, allocations: 135.3 kB / 445 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002135/0.3979, allocations: 0.8952 MB / 445.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001329/0.3992, allocations: 1.01 MB / 446.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001266/0.4005, allocations: 1.179 MB / 448 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005608/0.4061, allocations: 3.948 MB / 452 MB, free: 256 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4061, allocations: 0 / 452 MB, free: 256 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4061, allocations: 0 / 452 MB, free: 256 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001608/0.4063, allocations: 1.344 kB / 452 MB, free: 256 kB / 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.006705/0.413, allocations: 2.957 MB / 454.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.413, allocations: 10.12 kB / 455 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006628/0.4137, allocations: 456.3 kB / 455.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006569/0.4203, allocations: 1.666 MB / 457.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003073/0.4233, allocations: 1.527 MB / 458.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.4235, allocations: 124 kB / 458.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003394/0.4238, allocations: 152.2 kB / 458.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.4348, allocations: 6.36 MB / 465.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001158/0.4349, allocations: 36.16 kB / 465.3 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003082/0.4352, allocations: 79.52 kB / 465.3 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003019/0.4382, allocations: 1.435 MB / 466.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01293/0.4511, allocations: 5.673 MB / 472.4 MB, free: 2.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03785/0.489, allocations: 26.23 MB / 498.7 MB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004815/0.4938, allocations: 2.191 MB / 0.4891 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.4952, allocations: 0.9487 MB / 0.4901 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.379e-05/0.4953, allocations: 15.92 kB / 0.4901 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.4954, allocations: 46.72 kB / 0.4901 GB, free: 3.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.466e-06/0.4954, allocations: 0 / 0.4901 GB, free: 3.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02281/0.5182, allocations: 8.709 MB / 0.4986 GB, free: 10.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.5183, allocations: 148.5 kB / 0.4988 GB, free: 10.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004638/0.5229, allocations: 2.824 MB / 0.5015 GB, free: 7.812 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002793/0.5232, allocations: 41.7 kB / 0.5016 GB, free: 7.766 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001933/0.5251, allocations: 2.151 MB / 0.5037 GB, free: 5.594 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006222/0.5257, allocations: 464.6 kB / 0.5041 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/0.527, allocations: 0.8854 MB / 0.505 GB, free: 4.238 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.5272, allocations: 301.1 kB / 0.5053 GB, free: 3.941 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002332/0.5295, allocations: 1.418 MB / 0.5066 GB, free: 2.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004853/0.5344, allocations: 4.23 MB / 0.5108 GB, free: 12.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008218/0.5426, allocations: 6.125 MB / 0.5168 GB, free: 5.324 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.086e-05/0.5427, allocations: 28 kB / 0.5168 GB, free: 5.297 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01391/0.5566, allocations: 6.089 MB / 0.5227 GB, free: 15.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.5567, allocations: 55.94 kB / 0.5228 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/0.5569, allocations: 100 kB / 0.5229 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002572/0.5594, allocations: 0.797 MB / 0.5237 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003729/0.5632, allocations: 0.9942 MB / 0.5246 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007663/0.5708, allocations: 4.459 MB / 0.529 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00493/0.5758, allocations: 251.6 kB / 0.5292 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001212/0.577, allocations: 276 kB / 0.5295 GB, free: 8.141 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.004056/0.581, allocations: 1.364 MB / 0.5308 GB, free: 6.762 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007655/0.5818, allocations: 243.3 kB / 0.531 GB, free: 6.523 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00503/0.5868, allocations: 1.845 MB / 0.5328 GB, free: 4.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.402e-05/0.5869, allocations: 19.92 kB / 0.5329 GB, free: 4.641 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.5869, allocations: 8 kB / 0.5329 GB, free: 4.633 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.5869, allocations: 3.984 kB / 0.5329 GB, free: 4.629 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.5983, allocations: 4.779 MB / 0.5375 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.5983, allocations: 0 / 0.5375 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006306/0.5989, allocations: 143.8 kB / 0.5377 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002162/0.6011, allocations: 0.6483 MB / 0.5383 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.637e-05/0.6011, allocations: 14.06 kB / 0.5383 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005685/0.6068, allocations: 3.96 MB / 0.5422 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.6068, allocations: 0 / 0.5422 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006527/0.6134, allocations: 3.697 MB / 0.5458 GB, free: 7.137 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007088/0.6141, allocations: 295.4 kB / 0.5461 GB, free: 6.828 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004949/0.6146, allocations: 19.94 kB / 0.5461 GB, free: 6.809 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.6157, allocations: 59.91 kB / 0.5462 GB, free: 6.75 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.6159, allocations: 59.86 kB / 0.5462 GB, free: 6.691 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.823e-05/0.616, allocations: 25.19 kB / 0.5462 GB, free: 6.668 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003786/0.6198, allocations: 1.762 MB / 0.548 GB, free: 4.898 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6198, allocations: 0 / 0.548 GB, free: 4.898 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003974/0.6237, allocations: 0.6249 MB / 0.5486 GB, free: 4.273 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.007359/0.6311, allocations: 4.327 MB / 0.5528 GB, free: 15.91 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006403/0.6375, allocations: 3.286 MB / 0.556 GB, free: 12.63 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.6375, allocations: 0 / 0.556 GB, free: 12.63 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001303/0.6388, allocations: 0.8651 MB / 0.5569 GB, free: 11.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002179/0.641, allocations: 266.3 kB / 0.5571 GB, free: 11.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05256/0.6935, allocations: 30.2 MB / 0.5866 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002546/0.6961, allocations: 2.186 MB / 0.5887 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003004/0.6991, allocations: 1.396 MB / 0.5901 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/0.7006, allocations: 1.046 MB / 0.5911 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of SimCode: time 1.202e-06/0.7006, allocations: 0 / 0.5911 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3434/1.044, allocations: 41.89 MB / 0.632 GB, free: 167.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.62/19.67, allocations: 14.69 kB / 0.632 GB, free: 167.4 MB / 0.5137 GB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.405078964002314]