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.00155/0.001551, allocations: 113.2 kB / 17.73 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.001545/0.001545, allocations: 188.2 kB / 18.67 MB, free: 4.391 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.476/1.476, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.002581/0.002581, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1173, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.207/0.3244, allocations: 7.117 MB / 381.8 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0058/0.3303, allocations: 3.158 MB / 384.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.3316, allocations: 34.84 kB / 385 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002412/0.334, allocations: 0.7871 MB / 385.8 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003873/0.3379, allocations: 1.308 MB / 387.1 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.3392, allocations: 0.4975 MB / 387.6 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003788/0.343, allocations: 2.543 MB / 390.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001558/0.3446, allocations: 1.158 MB / 391.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.3459, allocations: 0.7648 MB / 392 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001667/0.3476, allocations: 1.103 MB / 393.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003795/0.348, allocations: 134.5 kB / 393.3 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002081/0.3501, allocations: 0.8774 MB / 394.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001168/0.3513, allocations: 1.005 MB / 395.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001134/0.3524, allocations: 1.2 MB / 396.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004142/0.3566, allocations: 3.999 MB / 400.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3566, allocations: 5.766 kB / 400.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3566, allocations: 0 / 400.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.298e-05/0.3567, allocations: 0 / 400.3 MB, free: 1.445 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.006101/0.3628, allocations: 2.977 MB / 403.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3629, allocations: 13.5 kB / 403.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006521/0.3635, allocations: 456.2 kB / 403.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006409/0.3699, allocations: 1.663 MB / 405.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00353/0.3735, allocations: 1.783 MB / 407.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.3736, allocations: 125.1 kB / 407.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003753/0.374, allocations: 163.9 kB / 407.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/0.3842, allocations: 6.366 MB / 413.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-05/0.3844, allocations: 28.88 kB / 413.9 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/0.3846, allocations: 79.89 kB / 414 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00274/0.3874, allocations: 1.437 MB / 415.4 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0114/0.3988, allocations: 5.666 MB / 421.1 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03676/0.4356, allocations: 26.27 MB / 447.4 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004789/0.4404, allocations: 2.265 MB / 449.6 MB, free: 3.242 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/0.4418, allocations: 1.024 MB / 450.6 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.64e-05/0.4419, allocations: 15.98 kB / 450.7 MB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.442, allocations: 42.5 kB / 450.7 MB, free: 2.141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 4.038e-06/0.442, allocations: 0 / 450.7 MB, free: 2.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.0223/0.4643, allocations: 8.784 MB / 459.5 MB, free: 9.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/0.4644, allocations: 136.5 kB / 459.6 MB, free: 9.062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/0.4687, allocations: 2.852 MB / 462.5 MB, free: 6.195 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001764/0.4689, allocations: 45.69 kB / 462.5 MB, free: 6.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001766/0.4707, allocations: 2.171 MB / 464.7 MB, free: 3.953 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005603/0.4712, allocations: 452.7 kB / 465.1 MB, free: 3.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/0.4725, allocations: 0.8931 MB / 466 MB, free: 2.602 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4727, allocations: 305.1 kB / 466.3 MB, free: 2.301 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002286/0.475, allocations: 1.41 MB / 467.7 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004884/0.4799, allocations: 4.238 MB / 472 MB, free: 11.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007991/0.4879, allocations: 6.119 MB / 478.1 MB, free: 3.684 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.558e-05/0.488, allocations: 28 kB / 478.1 MB, free: 3.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01217/0.5002, allocations: 6.09 MB / 484.2 MB, free: 13.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.632e-05/0.5003, allocations: 48 kB / 484.2 MB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/0.5005, allocations: 104 kB / 484.3 MB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002476/0.5029, allocations: 0.7935 MB / 485.1 MB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003177/0.5061, allocations: 0.9903 MB / 486.1 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006413/0.5126, allocations: 4.481 MB / 490.6 MB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00342/0.516, allocations: 247.8 kB / 490.9 MB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004876/0.5165, allocations: 276 kB / 491.1 MB, free: 6.484 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.002311/0.5188, allocations: 1.368 MB / 492.5 MB, free: 5.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004456/0.5193, allocations: 250.3 kB / 492.7 MB, free: 4.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004172/0.5235, allocations: 1.853 MB / 494.6 MB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.097e-05/0.5235, allocations: 15.98 kB / 494.6 MB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.5235, allocations: 7.938 kB / 494.6 MB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.5236, allocations: 11.92 kB / 494.6 MB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009575/0.5331, allocations: 4.798 MB / 499.4 MB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.5332, allocations: 4 kB / 499.4 MB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006535/0.5339, allocations: 131.8 kB / 499.6 MB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00215/0.536, allocations: 0.6483 MB / 0.4885 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.5361, allocations: 16 kB / 0.4885 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005614/0.5418, allocations: 3.953 MB / 0.4924 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5418, allocations: 0 / 0.4924 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006392/0.5482, allocations: 3.714 MB / 0.496 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.5493, allocations: 447.2 kB / 0.4964 GB, free: 4.973 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002796/0.5496, allocations: 19.94 kB / 0.4964 GB, free: 4.953 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009338/0.5505, allocations: 71.83 kB / 0.4965 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/0.5507, allocations: 52 kB / 0.4965 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/0.5509, allocations: 31.98 kB / 0.4966 GB, free: 4.801 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003132/0.554, allocations: 1.77 MB / 0.4983 GB, free: 3.023 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.255e-06/0.554, allocations: 0 / 0.4983 GB, free: 3.023 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003739/0.5578, allocations: 0.6483 MB / 0.4989 GB, free: 2.375 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.006985/0.5648, allocations: 4.32 MB / 0.5032 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006321/0.5711, allocations: 3.403 MB / 0.5065 GB, free: 10.63 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5712, allocations: 0 / 0.5065 GB, free: 10.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.5726, allocations: 0.936 MB / 0.5074 GB, free: 9.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.5746, allocations: 267.5 kB / 0.5076 GB, free: 9.418 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05632/0.6309, allocations: 30.3 MB / 0.5372 GB, free: 7.258 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003371/0.6343, allocations: 2.188 MB / 0.5394 GB, free: 5.035 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003248/0.6376, allocations: 1.396 MB / 0.5407 GB, free: 3.633 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001824/0.6395, allocations: 1.054 MB / 0.5418 GB, free: 2.578 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6395, allocations: 0 / 0.5418 GB, free: 2.578 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.265/0.9045, allocations: 41.83 MB / 0.5826 GB, free: 136.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.09/20, allocations: 8.062 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