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.DoublePendulum.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.DoublePendulum,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001292/0.001292, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 202 kB / 18.74 MB, free: 4.312 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.426/1.426, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001967/0.001967, allocations: 64.14 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2901, allocations: 50.54 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01215/0.3023, allocations: 10.41 MB / 419.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008282/0.3107, allocations: 3.959 MB / 423.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.3126, allocations: 63.81 kB / 423.5 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004444/0.3171, allocations: 2.204 MB / 425.7 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005297/0.3224, allocations: 1.821 MB / 427.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.3244, allocations: 0.7447 MB / 428.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008376/0.3328, allocations: 5.248 MB / 433.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003814/0.3367, allocations: 2.888 MB / 436.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002487/0.3392, allocations: 1.468 MB / 437.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002841/0.342, allocations: 2.033 MB / 439.9 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006729/0.3427, allocations: 304 kB / 440.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002235/0.345, allocations: 1.163 MB / 441.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001734/0.3467, allocations: 1.816 MB / 443.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002386/0.3491, allocations: 2.187 MB / 445.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007851/0.357, allocations: 6.993 MB / 452.4 MB, free: 5.898 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.357, allocations: 0 / 452.4 MB, free: 5.898 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.357, allocations: 0 / 452.4 MB, free: 5.898 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001289/0.3572, allocations: 0 / 452.4 MB, free: 5.898 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01289/0.3701, allocations: 5.046 MB / 457.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.3701, allocations: 8.031 kB / 457.4 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001002/0.3711, allocations: 0.6245 MB / 458 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.172/0.5432, allocations: 12.3 MB / 470.3 MB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009468/0.5527, allocations: 3.721 MB / 474.1 MB, free: 40 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.5529, allocations: 201.1 kB / 474.3 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007095/0.5536, allocations: 271.8 kB / 474.5 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0144/0.5681, allocations: 8.741 MB / 483.3 MB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001126/0.5682, allocations: 47.64 kB / 483.3 MB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003434/0.5686, allocations: 123.9 kB / 483.4 MB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003215/0.5718, allocations: 1.774 MB / 485.2 MB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01401/0.5858, allocations: 7.526 MB / 492.7 MB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04493/0.6308, allocations: 35.4 MB / 0.5158 GB, free: 8.223 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008427/0.6392, allocations: 3.685 MB / 0.5193 GB, free: 4.395 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002829/0.6421, allocations: 2.029 MB / 0.5213 GB, free: 2.355 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005065/0.6426, allocations: 332.2 kB / 0.5216 GB, free: 1.973 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.793e-05/0.6427, allocations: 63.5 kB / 0.5217 GB, free: 1.902 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.509e-06/0.6427, allocations: 0 / 0.5217 GB, free: 1.902 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2825/0.9252, allocations: 20.24 MB / 0.5415 GB, free: 124.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.9253, allocations: 251.5 kB / 0.5417 GB, free: 124.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005015/0.9304, allocations: 3.949 MB / 0.5456 GB, free: 123.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003291/0.9307, allocations: 54.14 kB / 0.5456 GB, free: 123.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.9322, allocations: 2.924 MB / 0.5485 GB, free: 121.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006916/0.9329, allocations: 0.7516 MB / 0.5492 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001175/0.9341, allocations: 1.109 MB / 0.5503 GB, free: 120.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.9341, allocations: 305.1 kB / 0.5506 GB, free: 120.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/0.9365, allocations: 2.169 MB / 0.5527 GB, free: 119.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003561/0.94, allocations: 5.404 MB / 0.558 GB, free: 114.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00687/0.9469, allocations: 8.198 MB / 0.566 GB, free: 107.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.733e-05/0.947, allocations: 36 kB / 0.566 GB, free: 107.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01221/0.9592, allocations: 8.665 MB / 0.5745 GB, free: 99.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.13e-05/0.9593, allocations: 56 kB / 0.5745 GB, free: 99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.304e-05/0.9594, allocations: 112.9 kB / 0.5746 GB, free: 98.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003496/0.9629, allocations: 1.491 MB / 0.5761 GB, free: 97.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003366/0.9663, allocations: 1.228 MB / 0.5773 GB, free: 96.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/0.9768, allocations: 9.944 MB / 0.587 GB, free: 86.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004818/0.9817, allocations: 320.7 kB / 0.5873 GB, free: 85.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000871/0.9826, allocations: 332 kB / 0.5876 GB, free: 85.46 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (650): * Single equations (assignments): 646 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003472/0.9861, allocations: 1.933 MB / 0.5895 GB, free: 83.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009851/0.9871, allocations: 381.5 kB / 0.5899 GB, free: 83.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006658/0.9937, allocations: 4.139 MB / 0.5939 GB, free: 79.05 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.861e-05/0.9938, allocations: 20 kB / 0.5939 GB, free: 79.03 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/0.9938, allocations: 18.48 kB / 0.594 GB, free: 79.02 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.9938, allocations: 11.91 kB / 0.594 GB, free: 79.01 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0133/1.007, allocations: 9.28 MB / 0.603 GB, free: 69.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/1.007, allocations: 0 / 0.603 GB, free: 69.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/1.008, allocations: 267.6 kB / 0.6033 GB, free: 69.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003288/1.012, allocations: 1.343 MB / 0.6046 GB, free: 68.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001552/1.012, allocations: 28 kB / 0.6046 GB, free: 68.08 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00946/1.021, allocations: 8.948 MB / 0.6134 GB, free: 58.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.021, allocations: 4 kB / 0.6134 GB, free: 58.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009593/1.031, allocations: 7.055 MB / 0.6203 GB, free: 51.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/1.032, allocations: 422.5 kB / 0.6207 GB, free: 51.47 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004034/1.032, allocations: 31.98 kB / 0.6207 GB, free: 51.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/1.034, allocations: 116.7 kB / 0.6208 GB, free: 51.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003672/1.034, allocations: 109.7 kB / 0.6209 GB, free: 51.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/1.034, allocations: 58.25 kB / 0.621 GB, free: 51.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002936/1.037, allocations: 2.501 MB / 0.6234 GB, free: 48.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.11e-07/1.037, allocations: 0 / 0.6234 GB, free: 48.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004061/1.041, allocations: 0.998 MB / 0.6244 GB, free: 47.69 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136): * Single equations (assignments): 132 * 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008879/1.05, allocations: 7.704 MB / 0.6319 GB, free: 39.94 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006873/1.057, allocations: 5.378 MB / 0.6372 GB, free: 34.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/1.057, allocations: 0 / 0.6372 GB, free: 34.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0027/1.06, allocations: 2.086 MB / 0.6392 GB, free: 32.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002993/1.063, allocations: 0.4924 MB / 0.6397 GB, free: 32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06105/1.124, allocations: 45.75 MB / 0.6844 GB, free: 13.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003846/1.128, allocations: 3.09 MB / 0.6874 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004141/1.132, allocations: 1.823 MB / 0.6892 GB, free: 8.324 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002687/1.135, allocations: 1.756 MB / 0.6909 GB, free: 6.57 MB / 494.1 MB Notification: Performance of SimCode: time 1.864e-06/1.135, allocations: 0 / 0.6909 GB, free: 6.57 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3831/1.518, allocations: 74.58 MB / 0.7637 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.22/24.74, allocations: 4.844 kB / 0.7637 GB, free: 155.4 MB / 0.5137 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)