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.001246/0.001246, allocations: 112.1 kB / 17.07 MB, free: 5.996 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.001324/0.001324, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 43.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.29, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009208/0.2992, allocations: 7.112 MB / 407.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006269/0.3055, allocations: 3.15 MB / 410.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.3067, allocations: 35.88 kB / 410.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00193/0.3086, allocations: 0.7859 MB / 411.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003155/0.3118, allocations: 1.343 MB / 412.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.313, allocations: 495 kB / 413.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003177/0.3161, allocations: 2.538 MB / 415.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001444/0.3176, allocations: 1.165 MB / 416.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001275/0.3189, allocations: 0.7627 MB / 417.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001766/0.3207, allocations: 1.09 MB / 418.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005355/0.3212, allocations: 140 kB / 418.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001913/0.3231, allocations: 0.8814 MB / 419.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009821/0.3241, allocations: 1.009 MB / 420.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001087/0.3252, allocations: 1.188 MB / 421.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004576/0.3298, allocations: 3.986 MB / 425.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3298, allocations: 0 / 425.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.878e-06/0.3299, allocations: 4 kB / 425.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.861e-05/0.3299, allocations: 0 / 425.9 MB, free: 15.04 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.00534/0.3353, allocations: 2.979 MB / 428.9 MB, free: 12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.3353, allocations: 12.03 kB / 428.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005077/0.3359, allocations: 446 kB / 429.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005931/0.3418, allocations: 1.668 MB / 431 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003197/0.345, allocations: 1.636 MB / 432.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.3451, allocations: 114.9 kB / 432.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003469/0.3455, allocations: 159.8 kB / 432.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008585/0.3541, allocations: 6.37 MB / 439.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.15e-05/0.3542, allocations: 27.75 kB / 439.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/0.3544, allocations: 79.89 kB / 439.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002398/0.3568, allocations: 1.437 MB / 440.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009286/0.3661, allocations: 5.666 MB / 446.5 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02824/0.3944, allocations: 26.26 MB / 472.7 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004262/0.3987, allocations: 2.257 MB / 475 MB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.4, allocations: 1.023 MB / 476 MB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.4001, allocations: 23.83 kB / 476 MB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.4002, allocations: 54.42 kB / 476.1 MB, free: 11.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 4.168e-06/0.4002, allocations: 0 / 476.1 MB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02168/0.4219, allocations: 8.723 MB / 484.8 MB, free: 2.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.422, allocations: 140.5 kB / 485 MB, free: 2.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003937/0.4259, allocations: 2.828 MB / 487.8 MB, free: 15.33 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001731/0.4261, allocations: 41.7 kB / 487.8 MB, free: 15.28 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001429/0.4275, allocations: 2.159 MB / 490 MB, free: 13.1 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000437/0.428, allocations: 456.6 kB / 490.4 MB, free: 12.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.429, allocations: 0.8932 MB / 491.3 MB, free: 11.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.726e-05/0.4291, allocations: 301.1 kB / 491.6 MB, free: 11.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002168/0.4313, allocations: 1.406 MB / 493 MB, free: 10.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004538/0.4359, allocations: 4.241 MB / 497.3 MB, free: 4.363 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007301/0.4432, allocations: 6.123 MB / 0.4916 GB, free: 12.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.224e-05/0.4433, allocations: 28 kB / 0.4916 GB, free: 12.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01181/0.4551, allocations: 6.099 MB / 0.4976 GB, free: 6.699 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.4553, allocations: 52.03 kB / 0.4976 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001947/0.4555, allocations: 103.9 kB / 0.4977 GB, free: 6.547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003454/0.459, allocations: 0.7928 MB / 0.4985 GB, free: 5.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004799/0.4638, allocations: 0.9825 MB / 0.4995 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009224/0.473, allocations: 4.474 MB / 0.5038 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00503/0.4781, allocations: 251.6 kB / 0.5041 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009676/0.4791, allocations: 272 kB / 0.5043 GB, free: 15.64 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.003867/0.483, allocations: 1.368 MB / 0.5057 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008445/0.4839, allocations: 246.4 kB / 0.5059 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007247/0.4911, allocations: 1.853 MB / 0.5077 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-05/0.4912, allocations: 15.94 kB / 0.5077 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/0.4913, allocations: 4 kB / 0.5077 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.4913, allocations: 3.984 kB / 0.5077 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/0.5082, allocations: 4.798 MB / 0.5124 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-05/0.5083, allocations: 4 kB / 0.5124 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.5096, allocations: 131.9 kB / 0.5125 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004062/0.5137, allocations: 0.6486 MB / 0.5132 GB, free: 6.461 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001735/0.5139, allocations: 20 kB / 0.5132 GB, free: 6.441 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009656/0.5236, allocations: 3.945 MB / 0.517 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/0.5237, allocations: 3.938 kB / 0.5171 GB, free: 2.352 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/0.5339, allocations: 3.698 MB / 0.5207 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.535, allocations: 307.4 kB / 0.521 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006762/0.5357, allocations: 15.94 kB / 0.521 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001867/0.5376, allocations: 67.89 kB / 0.521 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003019/0.5379, allocations: 55.86 kB / 0.5211 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/0.5381, allocations: 32 kB / 0.5211 GB, free: 14.14 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005407/0.5435, allocations: 1.758 MB / 0.5228 GB, free: 12.37 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5436, allocations: 0 / 0.5228 GB, free: 12.37 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006793/0.5504, allocations: 0.6406 MB / 0.5235 GB, free: 11.73 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.01203/0.5624, allocations: 4.327 MB / 0.5277 GB, free: 7.363 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00993/0.5724, allocations: 3.424 MB / 0.531 GB, free: 3.949 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/0.5725, allocations: 0 / 0.531 GB, free: 3.949 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.575, allocations: 0.9359 MB / 0.5319 GB, free: 3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/0.5786, allocations: 253 kB / 0.5322 GB, free: 2.754 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3067/0.8854, allocations: 30.22 MB / 0.5617 GB, free: 111.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001547/0.887, allocations: 2.186 MB / 0.5638 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002306/0.8893, allocations: 1.403 MB / 0.5652 GB, free: 108.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009903/0.8903, allocations: 1.05 MB / 0.5662 GB, free: 107.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.8903, allocations: 0 / 0.5662 GB, free: 107.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06452/0.9548, allocations: 41.7 MB / 0.607 GB, free: 65.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.8/18.75, allocations: 0 / 0.607 GB, free: 65.93 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