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.001286/0.001286, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 199.8 kB / 18.73 MB, free: 4.41 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.451/1.451, allocations: 227.7 MB / 247.2 MB, free: 10.24 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.001915/0.001915, allocations: 68.12 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3013, allocations: 50.55 MB / 409.1 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01428/0.3156, allocations: 11.78 MB / 420.8 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009844/0.3255, allocations: 4.343 MB / 425.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.3282, allocations: 83.69 kB / 425.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005775/0.334, allocations: 2.869 MB / 428.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005518/0.3396, allocations: 1.922 MB / 430.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00243/0.342, allocations: 1.041 MB / 431.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00841/0.3504, allocations: 5.599 MB / 436.7 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005185/0.3557, allocations: 3.98 MB / 440.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003115/0.3588, allocations: 1.694 MB / 442.4 MB, free: 68 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003564/0.3624, allocations: 2.29 MB / 444.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008717/0.3633, allocations: 360 kB / 445 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002501/0.3658, allocations: 1.225 MB / 446.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002346/0.3681, allocations: 2.061 MB / 448.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003485/0.3716, allocations: 2.486 MB / 450.8 MB, free: 7.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01087/0.3825, allocations: 7.911 MB / 458.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.3826, allocations: 0 / 458.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.959e-06/0.3826, allocations: 4 kB / 458.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002483/0.3828, allocations: 0 / 458.7 MB, free: 15.68 MB / 382.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.01565/0.3985, allocations: 5.567 MB / 464.3 MB, free: 10.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.3986, allocations: 12.03 kB / 464.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001384/0.4, allocations: 0.7032 MB / 465 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1886/0.5886, allocations: 12.38 MB / 477.4 MB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/0.5987, allocations: 3.967 MB / 481.3 MB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002483/0.599, allocations: 238.1 kB / 481.6 MB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009824/0.6, allocations: 335.8 kB / 481.9 MB, free: 8.316 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01839/0.6184, allocations: 9.707 MB / 491.6 MB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001456/0.6186, allocations: 55.58 kB / 491.7 MB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004886/0.6191, allocations: 147.9 kB / 491.8 MB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003508/0.6226, allocations: 1.9 MB / 493.7 MB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01653/0.6392, allocations: 8.234 MB / 0.4902 GB, free: 3.602 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05007/0.6893, allocations: 37.77 MB / 0.5271 GB, free: 12.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008865/0.6982, allocations: 3.818 MB / 0.5308 GB, free: 8.773 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00295/0.7012, allocations: 2.064 MB / 0.5328 GB, free: 6.699 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007927/0.702, allocations: 0.6439 MB / 0.5334 GB, free: 5.945 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.384e-05/0.7021, allocations: 55.5 kB / 0.5335 GB, free: 5.883 MB / 462.1 MB Notification: Performance of pre-optimization done (n=166): time 4.148e-06/0.7021, allocations: 0 / 0.5335 GB, free: 5.883 MB / 462.1 MB Notification: Performance of matching and sorting (n=201): time 0.2865/0.9886, allocations: 21.14 MB / 0.5541 GB, free: 119.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.9887, allocations: 252 kB / 0.5544 GB, free: 119.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004626/0.9934, allocations: 4.18 MB / 0.5584 GB, free: 117.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004002/0.9938, allocations: 61.31 kB / 0.5585 GB, free: 117.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/0.9953, allocations: 3.235 MB / 0.5617 GB, free: 114.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006777/0.996, allocations: 0.7968 MB / 0.5624 GB, free: 114.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001207/0.9972, allocations: 1.187 MB / 0.5636 GB, free: 112.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.16e-05/0.9972, allocations: 301.1 kB / 0.5639 GB, free: 112.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002396/0.9997, allocations: 2.272 MB / 0.5661 GB, free: 110.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003643/1.003, allocations: 5.747 MB / 0.5717 GB, free: 102.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007621/1.011, allocations: 8.678 MB / 0.5802 GB, free: 92.54 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.562e-05/1.011, allocations: 32 kB / 0.5802 GB, free: 92.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01502/1.026, allocations: 9.579 MB / 0.5896 GB, free: 82.92 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.469e-05/1.026, allocations: 56 kB / 0.5896 GB, free: 82.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.001e-05/1.026, allocations: 120 kB / 0.5897 GB, free: 82.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00513/1.031, allocations: 2.079 MB / 0.5918 GB, free: 80.67 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003429/1.035, allocations: 1.248 MB / 0.593 GB, free: 79.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01722/1.052, allocations: 17.26 MB / 0.6098 GB, free: 61.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004474/1.057, allocations: 339.6 kB / 0.6102 GB, free: 61.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006371/1.057, allocations: 350.7 kB / 0.6105 GB, free: 61.09 MB / 462.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.002584/1.06, allocations: 2.14 MB / 0.6126 GB, free: 58.95 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005831/1.06, allocations: 401.3 kB / 0.613 GB, free: 58.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006462/1.067, allocations: 4.286 MB / 0.6172 GB, free: 54.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.79e-05/1.067, allocations: 23.94 kB / 0.6172 GB, free: 54.22 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/1.067, allocations: 12 kB / 0.6172 GB, free: 54.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/1.067, allocations: 15.89 kB / 0.6172 GB, free: 54.19 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01415/1.081, allocations: 9.989 MB / 0.627 GB, free: 44.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/1.081, allocations: 0 / 0.627 GB, free: 44.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/1.082, allocations: 287.5 kB / 0.6272 GB, free: 43.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003386/1.086, allocations: 1.355 MB / 0.6286 GB, free: 42.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/1.086, allocations: 35.59 kB / 0.6286 GB, free: 42.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009746/1.096, allocations: 8.968 MB / 0.6374 GB, free: 33.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.096, allocations: 3.938 kB / 0.6374 GB, free: 33.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009171/1.105, allocations: 7.273 MB / 0.6445 GB, free: 26.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/1.106, allocations: 438.3 kB / 0.6449 GB, free: 25.62 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004723/1.107, allocations: 36 kB / 0.6449 GB, free: 25.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001554/1.108, allocations: 119.8 kB / 0.645 GB, free: 25.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003669/1.109, allocations: 117.1 kB / 0.6451 GB, free: 25.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/1.109, allocations: 52 kB / 0.6452 GB, free: 25.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003249/1.112, allocations: 2.633 MB / 0.6478 GB, free: 22.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/1.112, allocations: 4 kB / 0.6478 GB, free: 22.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004984/1.117, allocations: 1.109 MB / 0.6489 GB, free: 21.55 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 (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.009659/1.127, allocations: 7.917 MB / 0.6566 GB, free: 13.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00781/1.134, allocations: 6.056 MB / 0.6625 GB, free: 7.527 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.135, allocations: 4 kB / 0.6625 GB, free: 7.523 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003198/1.138, allocations: 2.222 MB / 0.6647 GB, free: 5.289 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003132/1.141, allocations: 0.5925 MB / 0.6652 GB, free: 4.707 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0815/1.222, allocations: 49.86 MB / 0.7139 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004446/1.227, allocations: 3.393 MB / 0.7173 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005013/1.232, allocations: 1.884 MB / 0.7191 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003774/1.236, allocations: 1.975 MB / 0.721 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of SimCode: time 2.254e-06/1.236, allocations: 0 / 0.721 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.359/1.595, allocations: 83.53 MB / 0.8026 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.52/29.12, allocations: 12.98 kB / 0.8026 GB, free: 142.7 MB / 0.5294 GB (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)