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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001268/0.001268, allocations: 192 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 43.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2781, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009697/0.2879, allocations: 7.106 MB / 407.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006674/0.2946, allocations: 3.154 MB / 410.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.2959, allocations: 35.94 kB / 410.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00237/0.2983, allocations: 0.7859 MB / 411.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00418/0.3025, allocations: 1.314 MB / 412.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.304, allocations: 499 kB / 413.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004022/0.3081, allocations: 2.535 MB / 415.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002137/0.3102, allocations: 1.157 MB / 416.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001533/0.3118, allocations: 0.751 MB / 417.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.3137, allocations: 1.106 MB / 418.7 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005193/0.3142, allocations: 136 kB / 418.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002006/0.3162, allocations: 0.8852 MB / 419.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001297/0.3176, allocations: 0.9933 MB / 420.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001875/0.3194, allocations: 1.199 MB / 421.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005427/0.3249, allocations: 3.99 MB / 425.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3249, allocations: 0 / 425.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3249, allocations: 0 / 425.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001197/0.3251, allocations: 0 / 425.9 MB, free: 15.06 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.006498/0.3316, allocations: 2.967 MB / 428.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3316, allocations: 11.89 kB / 428.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008115/0.3324, allocations: 457.9 kB / 429.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006308/0.3388, allocations: 1.668 MB / 431 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003191/0.342, allocations: 1.64 MB / 432.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.3421, allocations: 122.8 kB / 432.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004057/0.3426, allocations: 155.8 kB / 432.9 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/0.3528, allocations: 6.359 MB / 439.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.803e-05/0.3529, allocations: 31.75 kB / 439.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003195/0.3533, allocations: 79.89 kB / 439.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002662/0.3559, allocations: 1.441 MB / 440.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/0.3671, allocations: 5.67 MB / 446.5 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03201/0.3991, allocations: 26.25 MB / 472.7 MB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004582/0.4038, allocations: 2.266 MB / 475 MB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.4053, allocations: 1.035 MB / 476 MB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.279e-05/0.4054, allocations: 12 kB / 476 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.4054, allocations: 38.56 kB / 476.1 MB, free: 11.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.256e-06/0.4054, allocations: 0 / 476.1 MB, free: 11.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02161/0.427, allocations: 8.728 MB / 484.8 MB, free: 2.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.4272, allocations: 140.5 kB / 484.9 MB, free: 2.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004221/0.4314, allocations: 2.828 MB / 487.8 MB, free: 15.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.4316, allocations: 41.7 kB / 487.8 MB, free: 15.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001715/0.4333, allocations: 2.159 MB / 490 MB, free: 13.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005614/0.4339, allocations: 460.6 kB / 490.4 MB, free: 12.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001266/0.4352, allocations: 0.8853 MB / 491.3 MB, free: 11.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4353, allocations: 305.1 kB / 491.6 MB, free: 11.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002228/0.4376, allocations: 1.406 MB / 493 MB, free: 10.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004477/0.442, allocations: 4.238 MB / 497.2 MB, free: 4.391 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007585/0.4497, allocations: 6.128 MB / 0.4916 GB, free: 12.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.931e-05/0.4498, allocations: 32 kB / 0.4916 GB, free: 12.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01188/0.4616, allocations: 6.092 MB / 0.4975 GB, free: 6.723 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.525e-05/0.4618, allocations: 48 kB / 0.4976 GB, free: 6.676 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/0.4619, allocations: 111.9 kB / 0.4977 GB, free: 6.566 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002352/0.4642, allocations: 0.7932 MB / 0.4985 GB, free: 5.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002986/0.4672, allocations: 0.9863 MB / 0.4994 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006379/0.4736, allocations: 4.469 MB / 0.5038 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00294/0.4766, allocations: 247.7 kB / 0.504 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005437/0.4772, allocations: 283.9 kB / 0.5043 GB, free: 15.65 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.002146/0.4793, allocations: 1.364 MB / 0.5056 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004519/0.4798, allocations: 246.4 kB / 0.5059 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004022/0.4838, allocations: 1.857 MB / 0.5077 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-05/0.4839, allocations: 15.94 kB / 0.5077 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.4839, allocations: 8 kB / 0.5077 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.4839, allocations: 3.984 kB / 0.5077 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00941/0.4933, allocations: 4.789 MB / 0.5124 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.4934, allocations: 0 / 0.5124 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006492/0.494, allocations: 135.8 kB / 0.5125 GB, free: 7.129 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002112/0.4962, allocations: 0.6444 MB / 0.5131 GB, free: 6.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001309/0.4963, allocations: 15.98 kB / 0.5132 GB, free: 6.465 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005518/0.5018, allocations: 3.961 MB / 0.517 GB, free: 2.363 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.5019, allocations: 0 / 0.517 GB, free: 2.363 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006407/0.5083, allocations: 3.702 MB / 0.5206 GB, free: 14.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007262/0.5091, allocations: 299.3 kB / 0.5209 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003371/0.5094, allocations: 19.94 kB / 0.5209 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009858/0.5104, allocations: 63.91 kB / 0.521 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.5106, allocations: 51.92 kB / 0.5211 GB, free: 14.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-05/0.5107, allocations: 32.06 kB / 0.5211 GB, free: 14.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00304/0.5138, allocations: 1.758 MB / 0.5228 GB, free: 12.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5138, allocations: 0 / 0.5228 GB, free: 12.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003355/0.5172, allocations: 0.6483 MB / 0.5234 GB, free: 11.74 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.006826/0.524, allocations: 4.331 MB / 0.5277 GB, free: 7.375 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006007/0.53, allocations: 3.412 MB / 0.531 GB, free: 3.973 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.5301, allocations: 0 / 0.531 GB, free: 3.973 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.5316, allocations: 0.9355 MB / 0.5319 GB, free: 3.023 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.5336, allocations: 264.3 kB / 0.5322 GB, free: 2.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2493/0.7829, allocations: 30.22 MB / 0.5617 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001786/0.7847, allocations: 2.19 MB / 0.5638 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002491/0.7872, allocations: 1.394 MB / 0.5652 GB, free: 108.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/0.7886, allocations: 1.05 MB / 0.5662 GB, free: 107 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.7887, allocations: 0 / 0.5662 GB, free: 107 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07355/0.8622, allocations: 41.7 MB / 0.6069 GB, free: 65.69 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.11/19.97, allocations: 7.688 kB / 0.6069 GB, free: 65.68 MB / 462.1 MB (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.002 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) 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) Reference file matches