Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001096, allocations: 106.6 kB / 17.72 MB, free: 5.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 194.9 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0907/0.09192, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.1965/0.2885, allocations: 7.12 MB / 381.8 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006353/0.2949, allocations: 3.162 MB / 384.9 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.2962, allocations: 38.78 kB / 385 MB, free: 8.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.2983, allocations: 0.7793 MB / 385.8 MB, free: 7.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003362/0.3016, allocations: 1.337 MB / 387.1 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.3028, allocations: 0.4987 MB / 387.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003548/0.3064, allocations: 2.539 MB / 390.1 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.3078, allocations: 1.16 MB / 391.3 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001085/0.3089, allocations: 0.7688 MB / 392.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.3103, allocations: 1.107 MB / 393.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003044/0.3106, allocations: 134.7 kB / 393.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.3123, allocations: 0.8695 MB / 394.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009336/0.3132, allocations: 1.007 MB / 395.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000922/0.3141, allocations: 1.204 MB / 396.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003909/0.3181, allocations: 3.997 MB / 400.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3181, allocations: 0 / 400.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3181, allocations: 0 / 400.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.501e-05/0.3181, allocations: 0 / 400.4 MB, free: 1.434 MB / 318.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.005396/0.3236, allocations: 2.987 MB / 403.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3236, allocations: 9.438 kB / 403.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006317/0.3243, allocations: 449.9 kB / 403.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006486/0.3307, allocations: 1.67 MB / 405.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003874/0.3346, allocations: 1.78 MB / 407.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.3348, allocations: 129.3 kB / 407.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003836/0.3352, allocations: 151.9 kB / 407.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009484/0.3447, allocations: 6.367 MB / 413.9 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.63e-05/0.3448, allocations: 35.73 kB / 413.9 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000245/0.345, allocations: 79.89 kB / 414 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002554/0.3476, allocations: 1.429 MB / 415.4 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01078/0.3584, allocations: 5.674 MB / 421.1 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0309/0.3893, allocations: 26.27 MB / 447.4 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004305/0.3937, allocations: 2.262 MB / 449.6 MB, free: 3.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.395, allocations: 1.026 MB / 450.7 MB, free: 2.164 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.72e-05/0.395, allocations: 11.98 kB / 450.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.3951, allocations: 42.5 kB / 450.7 MB, free: 2.102 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 3.576e-06/0.3951, allocations: 3.938 kB / 450.7 MB, free: 2.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.02134/0.4164, allocations: 8.779 MB / 459.5 MB, free: 9.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.649e-05/0.4166, allocations: 148.5 kB / 459.6 MB, free: 9.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003828/0.4204, allocations: 2.852 MB / 462.5 MB, free: 6.148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/0.4206, allocations: 41.64 kB / 462.5 MB, free: 6.102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.4219, allocations: 2.174 MB / 464.7 MB, free: 3.906 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004904/0.4224, allocations: 448.7 kB / 465.2 MB, free: 3.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001061/0.4235, allocations: 0.8854 MB / 466 MB, free: 2.566 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.783e-05/0.4236, allocations: 305.1 kB / 466.3 MB, free: 2.266 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002052/0.4257, allocations: 1.41 MB / 467.7 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00373/0.4294, allocations: 4.238 MB / 472 MB, free: 11.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006496/0.4359, allocations: 6.116 MB / 478.1 MB, free: 3.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-05/0.436, allocations: 28 kB / 478.1 MB, free: 3.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01055/0.4466, allocations: 6.093 MB / 484.2 MB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.411e-05/0.4467, allocations: 51.91 kB / 484.3 MB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/0.4468, allocations: 100 kB / 484.4 MB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002284/0.4491, allocations: 0.805 MB / 485.2 MB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/0.4519, allocations: 0.9786 MB / 486.2 MB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005667/0.4576, allocations: 4.485 MB / 490.6 MB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003498/0.4611, allocations: 247.7 kB / 490.9 MB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004776/0.4616, allocations: 280 kB / 491.2 MB, free: 6.441 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.002356/0.4639, allocations: 1.368 MB / 492.5 MB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004989/0.4644, allocations: 246.3 kB / 492.8 MB, free: 4.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003793/0.4682, allocations: 1.857 MB / 494.6 MB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-05/0.4683, allocations: 12 kB / 494.6 MB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.4683, allocations: 11.88 kB / 494.6 MB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.4683, allocations: 3.984 kB / 494.6 MB, free: 2.918 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009337/0.4777, allocations: 4.806 MB / 499.5 MB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.4777, allocations: 0 / 499.5 MB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006081/0.4783, allocations: 131.8 kB / 499.6 MB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/0.4803, allocations: 0.6487 MB / 0.4885 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.041e-05/0.4804, allocations: 27.97 kB / 0.4885 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004909/0.4853, allocations: 3.945 MB / 0.4924 GB, free: 9.133 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.4854, allocations: 4.031 kB / 0.4924 GB, free: 9.129 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005933/0.4913, allocations: 3.702 MB / 0.496 GB, free: 5.395 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/0.4926, allocations: 455.2 kB / 0.4964 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005592/0.4932, allocations: 16 kB / 0.4965 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.4944, allocations: 67.84 kB / 0.4965 GB, free: 4.848 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.4946, allocations: 63.91 kB / 0.4966 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-05/0.4947, allocations: 28 kB / 0.4966 GB, free: 4.758 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003797/0.4985, allocations: 1.77 MB / 0.4983 GB, free: 2.98 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4985, allocations: 0 / 0.4983 GB, free: 2.98 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004235/0.5028, allocations: 0.6406 MB / 0.499 GB, free: 2.34 MB / 430.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.006708/0.5095, allocations: 4.327 MB / 0.5032 GB, free: 13.97 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005536/0.515, allocations: 3.395 MB / 0.5065 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5151, allocations: 8.375 kB / 0.5065 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.5163, allocations: 0.9394 MB / 0.5074 GB, free: 9.633 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/0.5184, allocations: 252.8 kB / 0.5077 GB, free: 9.387 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04789/0.5664, allocations: 30.29 MB / 0.5373 GB, free: 7.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00266/0.5691, allocations: 2.192 MB / 0.5394 GB, free: 5.004 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003012/0.5721, allocations: 1.4 MB / 0.5408 GB, free: 3.598 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001558/0.5737, allocations: 1.058 MB / 0.5418 GB, free: 2.539 MB / 478.1 MB Notification: Performance of SimCode: time 2.485e-06/0.5737, allocations: 0 / 0.5418 GB, free: 2.539 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2657/0.8394, allocations: 41.82 MB / 0.5826 GB, free: 136.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.22/19.06, allocations: 11.84 kB / 0.5826 GB, free: 136.8 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches