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.DoublePendulumInitTip.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.DoublePendulumInitTip,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001794/0.001794, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001894, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.481/1.481, allocations: 227.7 MB / 247 MB, free: 10.35 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.002889/0.002889, allocations: 68.83 kB / 307.3 MB, free: 400 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1255, allocations: 50.52 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01462/0.1402, allocations: 11.79 MB / 369.7 MB, free: 2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1772/0.3174, allocations: 4.338 MB / 374 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001837/0.3194, allocations: 80.22 kB / 374.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005527/0.3249, allocations: 2.875 MB / 376.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005338/0.3303, allocations: 1.928 MB / 378.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002815/0.3331, allocations: 1.043 MB / 379.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008987/0.3421, allocations: 5.594 MB / 385.5 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004637/0.3468, allocations: 3.97 MB / 389.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003052/0.3499, allocations: 1.7 MB / 391.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003296/0.3532, allocations: 2.286 MB / 393.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.3545, allocations: 361 kB / 393.8 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002722/0.3572, allocations: 1.23 MB / 395.1 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002106/0.3593, allocations: 2.061 MB / 397.1 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003394/0.3627, allocations: 2.484 MB / 399.6 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.3738, allocations: 7.649 MB / 407.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.3739, allocations: 0 / 407.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.3739, allocations: 0 / 407.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002561/0.3741, allocations: 0 / 407.2 MB, free: 7.926 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.0176/0.3917, allocations: 5.433 MB / 412.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.3918, allocations: 11.97 kB / 412.7 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001681/0.3935, allocations: 0.7056 MB / 413.4 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1693/0.5628, allocations: 12.35 MB / 425.8 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009448/0.5723, allocations: 3.878 MB / 429.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002309/0.5725, allocations: 236.8 kB / 429.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001107/0.5737, allocations: 323 kB / 430.2 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01939/0.5931, allocations: 9.723 MB / 439.9 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000207/0.5933, allocations: 55.55 kB / 440 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005766/0.5939, allocations: 154 kB / 440.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003878/0.5978, allocations: 1.897 MB / 442 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01903/0.6168, allocations: 8.23 MB / 450.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05173/0.6686, allocations: 37.87 MB / 488.1 MB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008928/0.6776, allocations: 3.813 MB / 491.9 MB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002919/0.6805, allocations: 2.059 MB / 494 MB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008466/0.6814, allocations: 0.6441 MB / 494.6 MB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.958e-05/0.6815, allocations: 55.5 kB / 494.7 MB, free: 14.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=166): time 5.771e-06/0.6815, allocations: 0 / 494.7 MB, free: 14.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=201): time 0.06282/0.7443, allocations: 20.91 MB / 0.5035 GB, free: 9.875 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001986/0.7446, allocations: 252.7 kB / 0.5037 GB, free: 9.574 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006672/0.7512, allocations: 4.173 MB / 0.5078 GB, free: 5.383 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000452/0.7517, allocations: 53.7 kB / 0.5079 GB, free: 5.324 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002621/0.7544, allocations: 3.125 MB / 0.5109 GB, free: 2.195 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/0.7554, allocations: 0.7646 MB / 0.5117 GB, free: 1.438 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001653/0.757, allocations: 1.181 MB / 0.5128 GB, free: 252 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.7572, allocations: 305.1 kB / 0.5131 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003651/0.7609, allocations: 2.272 MB / 0.5153 GB, free: 13.67 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006681/0.7676, allocations: 5.743 MB / 0.5209 GB, free: 6.195 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2097/0.9773, allocations: 8.675 MB / 0.5294 GB, free: 133.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/0.9774, allocations: 34.19 kB / 0.5294 GB, free: 133.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.02119/0.9986, allocations: 9.553 MB / 0.5388 GB, free: 131 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.9988, allocations: 58.84 kB / 0.5388 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002004/0.999, allocations: 121.2 kB / 0.5389 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006733/1.006, allocations: 2.079 MB / 0.541 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004007/1.01, allocations: 1.255 MB / 0.5422 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01898/1.029, allocations: 17.26 MB / 0.559 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004322/1.033, allocations: 343 kB / 0.5594 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006298/1.034, allocations: 352.1 kB / 0.5597 GB, free: 121.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (671): * Single equations (assignments): 665 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,36,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.002856/1.037, allocations: 2.133 MB / 0.5618 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006301/1.037, allocations: 376.7 kB / 0.5622 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006904/1.044, allocations: 4.275 MB / 0.5663 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-05/1.044, allocations: 31.5 kB / 0.5664 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/1.044, allocations: 7.312 kB / 0.5664 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.133e-05/1.044, allocations: 12.14 kB / 0.5664 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.015/1.059, allocations: 10.03 MB / 0.5762 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.971e-05/1.059, allocations: 8.062 kB / 0.5762 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001281/1.061, allocations: 283.5 kB / 0.5765 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003366/1.064, allocations: 1.362 MB / 0.5778 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/1.064, allocations: 34 kB / 0.5778 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009655/1.074, allocations: 8.969 MB / 0.5866 GB, free: 98.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/1.074, allocations: 0 / 0.5866 GB, free: 98.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009406/1.083, allocations: 7.245 MB / 0.5937 GB, free: 91.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/1.085, allocations: 416.2 kB / 0.594 GB, free: 90.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000533/1.085, allocations: 47.77 kB / 0.5941 GB, free: 90.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/1.087, allocations: 119.8 kB / 0.5942 GB, free: 90.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003923/1.087, allocations: 113.1 kB / 0.5943 GB, free: 90.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/1.087, allocations: 56.12 kB / 0.5944 GB, free: 90.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00378/1.091, allocations: 2.637 MB / 0.5969 GB, free: 87.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/1.091, allocations: 0 / 0.5969 GB, free: 87.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005373/1.096, allocations: 1.104 MB / 0.598 GB, free: 86.82 MB / 446.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 (147): * Single equations (assignments): 143 * 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 {(5,30,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009831/1.106, allocations: 7.907 MB / 0.6057 GB, free: 78.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01032/1.117, allocations: 7.256 MB / 0.6128 GB, free: 71.63 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.117, allocations: 0 / 0.6128 GB, free: 71.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/1.12, allocations: 2.224 MB / 0.615 GB, free: 69.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003379/1.124, allocations: 0.5842 MB / 0.6156 GB, free: 68.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07499/1.199, allocations: 56.36 MB / 0.6706 GB, free: 4.785 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00389/1.203, allocations: 3.393 MB / 0.6739 GB, free: 1.355 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00441/1.207, allocations: 1.88 MB / 0.6758 GB, free: 15.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003/1.21, allocations: 1.979 MB / 0.6777 GB, free: 13.49 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/1.21, allocations: 0 / 0.6777 GB, free: 13.49 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.346/1.556, allocations: 87 MB / 0.7627 GB, free: 98.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/15.6, allocations: 29.14 kB / 0.7627 GB, free: 98.55 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_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_DoublePendulumInitTip.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1)