Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_1_0-beta_om_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-beta_om_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 trunk/package.mo): time 0.001515/0.001515, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.517/1.517, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2802, allocations: 50.55 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009013/0.2893, allocations: 7.085 MB / 416.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006731/0.2961, allocations: 3.166 MB / 419.3 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/0.2972, allocations: 31.94 kB / 419.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.2993, allocations: 0.7859 MB / 420.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003336/0.3027, allocations: 1.284 MB / 421.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.3039, allocations: 495 kB / 421.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004137/0.308, allocations: 2.566 MB / 424.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.3098, allocations: 1.153 MB / 425.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.311, allocations: 0.7472 MB / 426.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.3126, allocations: 1.102 MB / 427.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003071/0.3129, allocations: 132 kB / 427.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001746/0.3146, allocations: 0.8658 MB / 428.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000964/0.3156, allocations: 0.9816 MB / 429.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.3168, allocations: 1.184 MB / 430.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004752/0.3216, allocations: 3.943 MB / 434.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3216, allocations: 0 / 434.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3216, allocations: 0 / 434.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.036e-05/0.3217, allocations: 3.938 kB / 434.6 MB, free: 7.738 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.005772/0.3274, allocations: 2.956 MB / 437.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.3275, allocations: 8.031 kB / 437.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005264/0.328, allocations: 454 kB / 438 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005915/0.334, allocations: 1.664 MB / 439.7 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002924/0.3369, allocations: 1.539 MB / 441.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.337, allocations: 118.9 kB / 441.3 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003403/0.3374, allocations: 151.9 kB / 441.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/0.348, allocations: 6.367 MB / 447.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.793e-05/0.3481, allocations: 31.7 kB / 447.9 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002526/0.3484, allocations: 79.89 kB / 447.9 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00267/0.3511, allocations: 1.437 MB / 449.4 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.3623, allocations: 5.666 MB / 455 MB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03372/0.396, allocations: 26.25 MB / 481.3 MB, free: 7.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004569/0.4006, allocations: 2.257 MB / 483.5 MB, free: 5.152 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.4021, allocations: 1.022 MB / 484.6 MB, free: 4.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.637e-05/0.4022, allocations: 19.98 kB / 484.6 MB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.4022, allocations: 46.48 kB / 484.6 MB, free: 4.043 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.607e-06/0.4022, allocations: 0 / 484.6 MB, free: 4.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02154/0.4238, allocations: 8.725 MB / 493.4 MB, free: 11.19 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.4239, allocations: 140.5 kB / 493.5 MB, free: 11.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004341/0.4283, allocations: 2.832 MB / 496.3 MB, free: 8.172 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001623/0.4285, allocations: 33.7 kB / 496.4 MB, free: 8.133 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00184/0.4303, allocations: 2.159 MB / 498.5 MB, free: 5.953 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000612/0.4309, allocations: 456.7 kB / 499 MB, free: 5.504 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/0.4322, allocations: 0.8931 MB / 499.9 MB, free: 4.598 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4323, allocations: 301.3 kB / 0.4884 GB, free: 4.301 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/0.4346, allocations: 1.406 MB / 0.4898 GB, free: 2.887 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004828/0.4395, allocations: 4.245 MB / 0.4939 GB, free: 13.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008229/0.4477, allocations: 6.124 MB / 0.4999 GB, free: 5.684 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.419e-05/0.4478, allocations: 28 kB / 0.5 GB, free: 5.656 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01269/0.4605, allocations: 6.09 MB / 0.5059 GB, free: 15.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.744e-05/0.4606, allocations: 48 kB / 0.5059 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001278/0.4608, allocations: 107.9 kB / 0.506 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002419/0.4632, allocations: 0.8007 MB / 0.5068 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003283/0.4665, allocations: 0.9825 MB / 0.5078 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007115/0.4736, allocations: 4.468 MB / 0.5122 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003633/0.4773, allocations: 251.6 kB / 0.5124 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007327/0.4781, allocations: 276 kB / 0.5127 GB, free: 8.496 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.002346/0.4804, allocations: 1.375 MB / 0.514 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004569/0.4809, allocations: 246.3 kB / 0.5142 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/0.4849, allocations: 1.846 MB / 0.516 GB, free: 5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.824e-05/0.485, allocations: 15.94 kB / 0.5161 GB, free: 4.984 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.485, allocations: 4 kB / 0.5161 GB, free: 4.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.485, allocations: 7.984 kB / 0.5161 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008913/0.4939, allocations: 4.786 MB / 0.5207 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.494, allocations: 7.922 kB / 0.5207 GB, free: 104 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006393/0.4946, allocations: 135.8 kB / 0.5209 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002028/0.4967, allocations: 0.6405 MB / 0.5215 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.109e-05/0.4968, allocations: 24.05 kB / 0.5215 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005465/0.5022, allocations: 3.953 MB / 0.5254 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.5023, allocations: 4.031 kB / 0.5254 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006276/0.5085, allocations: 3.705 MB / 0.529 GB, free: 7.469 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000695/0.5092, allocations: 295.4 kB / 0.5293 GB, free: 7.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/0.5095, allocations: 19.94 kB / 0.5293 GB, free: 7.141 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000815/0.5103, allocations: 59.91 kB / 0.5294 GB, free: 7.082 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001947/0.5105, allocations: 59.91 kB / 0.5294 GB, free: 7.023 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.231e-05/0.5106, allocations: 28 kB / 0.5294 GB, free: 6.996 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002807/0.5134, allocations: 1.758 MB / 0.5312 GB, free: 5.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5134, allocations: 3.938 kB / 0.5312 GB, free: 5.227 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00324/0.5167, allocations: 0.6328 MB / 0.5318 GB, free: 4.594 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.0068/0.5235, allocations: 4.32 MB / 0.536 GB, free: 240 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2321/0.7556, allocations: 3.407 MB / 0.5393 GB, free: 128.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.7557, allocations: 7.844 kB / 0.5393 GB, free: 128.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.7568, allocations: 0.9287 MB / 0.5402 GB, free: 127.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.7584, allocations: 252.6 kB / 0.5405 GB, free: 127.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03074/0.7891, allocations: 30.21 MB / 0.57 GB, free: 98.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001521/0.7907, allocations: 2.183 MB / 0.5721 GB, free: 96.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002289/0.793, allocations: 1.402 MB / 0.5735 GB, free: 95.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009653/0.794, allocations: 1.046 MB / 0.5745 GB, free: 94.09 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.794, allocations: 0 / 0.5745 GB, free: 94.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07404/0.868, allocations: 41.64 MB / 0.6152 GB, free: 52.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.48/19.35, allocations: 17.73 kB / 0.6152 GB, free: 52.82 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)