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.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001678/0.001678, allocations: 118.2 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.001939/0.001939, allocations: 206 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.514/1.514, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.001933/0.001933, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3061, allocations: 50.54 MB / 409.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01283/0.3189, allocations: 10.25 MB / 419.3 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008943/0.3279, allocations: 3.886 MB / 423.2 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.3299, allocations: 55.81 kB / 423.3 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004297/0.3343, allocations: 2.067 MB / 425.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004877/0.3392, allocations: 1.603 MB / 426.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002178/0.3414, allocations: 0.7018 MB / 427.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005912/0.3473, allocations: 3.392 MB / 431 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004671/0.352, allocations: 2.676 MB / 433.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0026/0.3546, allocations: 1.254 MB / 435 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003296/0.358, allocations: 1.748 MB / 436.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001128/0.3591, allocations: 260 kB / 437 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003083/0.3622, allocations: 1.112 MB / 438.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002394/0.3646, allocations: 1.554 MB / 439.6 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003659/0.3683, allocations: 1.852 MB / 441.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009687/0.378, allocations: 5.917 MB / 447.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3781, allocations: 0 / 447.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3781, allocations: 0 / 447.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002693/0.3784, allocations: 0 / 447.4 MB, free: 10.89 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01192/0.3903, allocations: 4.228 MB / 451.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.3904, allocations: 12.03 kB / 451.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002065/0.3925, allocations: 0.6374 MB / 452.3 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008056/0.4005, allocations: 1.894 MB / 454.2 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004893/0.4055, allocations: 2.101 MB / 456.3 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002435/0.4057, allocations: 209.2 kB / 456.5 MB, free: 1.668 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001012/0.4068, allocations: 271.9 kB / 456.7 MB, free: 1.402 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02314/0.4299, allocations: 10 MB / 466.7 MB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001598/0.4301, allocations: 47.58 kB / 466.8 MB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009332/0.4311, allocations: 127.9 kB / 466.9 MB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003516/0.4346, allocations: 1.852 MB / 468.8 MB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02095/0.4556, allocations: 8.571 MB / 477.3 MB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05316/0.5088, allocations: 36.76 MB / 0.502 GB, free: 6.316 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/0.5194, allocations: 3.894 MB / 0.5059 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002864/0.5223, allocations: 1.811 MB / 0.5076 GB, free: 416 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0131/0.5354, allocations: 7.616 MB / 0.5151 GB, free: 8.492 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.11e-05/0.5355, allocations: 51.5 kB / 0.5151 GB, free: 8.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.97e-06/0.5355, allocations: 0 / 0.5151 GB, free: 8.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05721/0.5927, allocations: 17.76 MB / 0.5324 GB, free: 6.574 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.5929, allocations: 149.5 kB / 0.5326 GB, free: 6.398 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005813/0.5987, allocations: 3.482 MB / 0.536 GB, free: 2.914 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002521/0.599, allocations: 49.7 kB / 0.536 GB, free: 2.859 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2067/0.8057, allocations: 2.842 MB / 0.5388 GB, free: 126.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001177/0.8069, allocations: 0.6706 MB / 0.5395 GB, free: 126.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002427/0.8093, allocations: 1.118 MB / 0.5406 GB, free: 126.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.583e-05/0.8094, allocations: 305.4 kB / 0.5409 GB, free: 125.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003174/0.8126, allocations: 1.959 MB / 0.5428 GB, free: 125.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003603/0.8162, allocations: 5.374 MB / 0.548 GB, free: 120 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00686/0.8231, allocations: 7.938 MB / 0.5558 GB, free: 113.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.195e-05/0.8232, allocations: 38.06 kB / 0.5558 GB, free: 113.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01275/0.8359, allocations: 8.198 MB / 0.5638 GB, free: 108.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.8361, allocations: 60 kB / 0.5639 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001949/0.8363, allocations: 123.5 kB / 0.564 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003685/0.84, allocations: 1.295 MB / 0.5652 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00364/0.8436, allocations: 1.259 MB / 0.5665 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007553/0.8512, allocations: 6.556 MB / 0.5729 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004207/0.8555, allocations: 299.1 kB / 0.5732 GB, free: 99.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009796/0.8565, allocations: 340 kB / 0.5735 GB, free: 99.61 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: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00379/0.8603, allocations: 1.808 MB / 0.5753 GB, free: 97.87 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007968/0.8611, allocations: 321.8 kB / 0.5756 GB, free: 97.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00687/0.868, allocations: 3.388 MB / 0.5789 GB, free: 94.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.48e-05/0.8681, allocations: 20 kB / 0.5789 GB, free: 94.14 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.389e-05/0.8681, allocations: 8 kB / 0.5789 GB, free: 94.13 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.666e-05/0.8681, allocations: 7.969 kB / 0.5789 GB, free: 94.12 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/0.882, allocations: 7.581 MB / 0.5863 GB, free: 86.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.8821, allocations: 4.875 kB / 0.5863 GB, free: 86.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.8832, allocations: 243.7 kB / 0.5865 GB, free: 86.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003291/0.8865, allocations: 1.119 MB / 0.5876 GB, free: 85.15 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001815/0.8867, allocations: 27.67 kB / 0.5877 GB, free: 85.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00686/0.8935, allocations: 6.178 MB / 0.5937 GB, free: 78.83 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.8936, allocations: 7.969 kB / 0.5937 GB, free: 78.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008496/0.9021, allocations: 5.752 MB / 0.5993 GB, free: 73.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009821/0.9031, allocations: 376 kB / 0.5997 GB, free: 72.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007603/0.9039, allocations: 24 kB / 0.5997 GB, free: 72.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/0.9056, allocations: 95.88 kB / 0.5998 GB, free: 72.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003206/0.9059, allocations: 92.75 kB / 0.5999 GB, free: 72.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/0.9061, allocations: 47.98 kB / 0.5999 GB, free: 72.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003945/0.91, allocations: 2.142 MB / 0.602 GB, free: 70.27 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.91, allocations: 0 / 0.602 GB, free: 70.27 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005245/0.9153, allocations: 0.8982 MB / 0.6029 GB, free: 69.38 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009242/0.9246, allocations: 6.4 MB / 0.6091 GB, free: 62.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006588/0.9312, allocations: 4.821 MB / 0.6139 GB, free: 58.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.9312, allocations: 0 / 0.6139 GB, free: 58.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/0.9332, allocations: 1.544 MB / 0.6154 GB, free: 56.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/0.9355, allocations: 367.9 kB / 0.6157 GB, free: 56.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05613/0.9916, allocations: 41.28 MB / 0.656 GB, free: 9.695 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003504/0.9952, allocations: 2.847 MB / 0.6588 GB, free: 6.812 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003537/0.9987, allocations: 1.707 MB / 0.6605 GB, free: 5.102 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/1.001, allocations: 1.587 MB / 0.662 GB, free: 3.516 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/1.001, allocations: 0 / 0.662 GB, free: 3.516 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.125/1.126, allocations: 60.04 MB / 0.7207 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.96/20.09, allocations: 12.25 kB / 0.7207 GB, free: 7.977 MB / 0.5137 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)