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.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001768/0.001768, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002008/0.002009, allocations: 200.7 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.552/1.552, allocations: 227.7 MB / 247.2 MB, free: 10.26 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.00193/0.00193, allocations: 63.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.252, allocations: 50.55 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01429/0.2664, allocations: 11.97 MB / 421.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008724/0.2751, allocations: 4.2 MB / 425.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001749/0.277, allocations: 67.81 kB / 425.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005549/0.2825, allocations: 2.749 MB / 428.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005621/0.2882, allocations: 1.93 MB / 430 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002069/0.2903, allocations: 0.8072 MB / 430.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008512/0.2988, allocations: 4.68 MB / 435.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005504/0.3044, allocations: 3.551 MB / 439 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003504/0.3079, allocations: 1.678 MB / 440.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004184/0.3122, allocations: 2.332 MB / 443 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001039/0.3132, allocations: 352 kB / 443.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.3158, allocations: 1.256 MB / 444.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002317/0.3181, allocations: 2.069 MB / 446.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003477/0.3216, allocations: 2.412 MB / 449.1 MB, free: 9.129 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.332, allocations: 7.52 MB / 456.6 MB, free: 1.578 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.332, allocations: 0 / 456.6 MB, free: 1.578 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.332, allocations: 0 / 456.6 MB, free: 1.578 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000258/0.3323, allocations: 0 / 456.6 MB, free: 1.578 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.0122/0.3445, allocations: 5.398 MB / 462 MB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3445, allocations: 12.03 kB / 462.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001321/0.3459, allocations: 0.7943 MB / 462.9 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008871/0.3548, allocations: 2.225 MB / 465.1 MB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005964/0.3608, allocations: 2.95 MB / 468 MB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002547/0.3611, allocations: 270.9 kB / 468.3 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001372/0.3624, allocations: 427.7 kB / 468.7 MB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02465/0.3871, allocations: 12.27 MB / 481 MB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001298/0.3873, allocations: 47.58 kB / 481 MB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005114/0.3878, allocations: 175.8 kB / 481.2 MB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003534/0.3913, allocations: 2.158 MB / 483.4 MB, free: 5.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02336/0.4147, allocations: 10.25 MB / 493.6 MB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06189/0.4767, allocations: 44.16 MB / 0.5252 GB, free: 14.22 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.4893, allocations: 4.648 MB / 0.5297 GB, free: 9.371 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002955/0.4923, allocations: 1.724 MB / 0.5314 GB, free: 7.641 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2389/0.7313, allocations: 8.276 MB / 0.5395 GB, free: 123 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/0.7314, allocations: 56.28 kB / 0.5395 GB, free: 123 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 5.42e-06/0.7314, allocations: 0 / 0.5395 GB, free: 123 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.03939/0.7708, allocations: 16.33 MB / 0.5555 GB, free: 117.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001065/0.7719, allocations: 1.694 MB / 0.5571 GB, free: 116.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005392/0.7774, allocations: 4.212 MB / 0.5612 GB, free: 113.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003932/0.7778, allocations: 61.52 kB / 0.5613 GB, free: 113.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.7794, allocations: 3.539 MB / 0.5647 GB, free: 110.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008216/0.7802, allocations: 0.8433 MB / 0.5656 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001461/0.7817, allocations: 1.354 MB / 0.5669 GB, free: 108.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.756e-05/0.7818, allocations: 305.1 kB / 0.5672 GB, free: 108.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002821/0.7846, allocations: 2.25 MB / 0.5694 GB, free: 105.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004288/0.7889, allocations: 6.374 MB / 0.5756 GB, free: 97.46 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00782/0.7968, allocations: 9.282 MB / 0.5847 GB, free: 86.14 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/0.7969, allocations: 40 kB / 0.5847 GB, free: 86.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01605/0.813, allocations: 9.137 MB / 0.5936 GB, free: 76.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.808e-05/0.8131, allocations: 68 kB / 0.5937 GB, free: 76.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005028/0.8181, allocations: 2.871 MB / 0.5965 GB, free: 74.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00304/0.8212, allocations: 1.076 MB / 0.5975 GB, free: 72.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004462/0.8257, allocations: 1.587 MB / 0.5991 GB, free: 71.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/0.8294, allocations: 4.67 MB / 0.6037 GB, free: 66.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004938/0.8344, allocations: 431.2 kB / 0.6041 GB, free: 65.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009977/0.8354, allocations: 412 kB / 0.6045 GB, free: 65.57 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (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],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003093/0.8385, allocations: 2.213 MB / 0.6066 GB, free: 63.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006449/0.8392, allocations: 393.4 kB / 0.607 GB, free: 62.96 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005525/0.8447, allocations: 3.325 MB / 0.6102 GB, free: 59.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004503/0.8493, allocations: 2.783 MB / 0.613 GB, free: 56.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/0.8493, allocations: 4.562 kB / 0.613 GB, free: 56.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-05/0.8493, allocations: 7.969 kB / 0.613 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/0.8656, allocations: 10.38 MB / 0.6231 GB, free: 46.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.546e-05/0.8657, allocations: 20.03 kB / 0.6231 GB, free: 46.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/0.8672, allocations: 371.4 kB / 0.6235 GB, free: 45.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002609/0.8698, allocations: 0.9863 MB / 0.6244 GB, free: 44.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002647/0.8701, allocations: 68.78 kB / 0.6245 GB, free: 44.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003874/0.874, allocations: 4.911 MB / 0.6293 GB, free: 39.55 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006967/0.8747, allocations: 1.57 MB / 0.6308 GB, free: 37.83 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008091/0.8828, allocations: 5.984 MB / 0.6367 GB, free: 31.64 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.884, allocations: 462.2 kB / 0.6371 GB, free: 31.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000522/0.8846, allocations: 55.98 kB / 0.6372 GB, free: 31.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0016/0.8862, allocations: 155.8 kB / 0.6373 GB, free: 30.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.8865, allocations: 172.4 kB / 0.6375 GB, free: 30.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.8866, allocations: 71.98 kB / 0.6376 GB, free: 30.72 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003465/0.8901, allocations: 2.594 MB / 0.6401 GB, free: 28.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.8901, allocations: 8 kB / 0.6401 GB, free: 28.11 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005559/0.8957, allocations: 1.121 MB / 0.6412 GB, free: 26.99 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008258/0.904, allocations: 6.664 MB / 0.6477 GB, free: 20.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008924/0.9129, allocations: 5.964 MB / 0.6535 GB, free: 14.12 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/0.913, allocations: 3.938 kB / 0.6535 GB, free: 14.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003587/0.9166, allocations: 2.208 MB / 0.6557 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003292/0.9199, allocations: 0.489 MB / 0.6562 GB, free: 11.35 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09541/1.015, allocations: 50.75 MB / 0.7057 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00731/1.023, allocations: 3.454 MB / 0.7091 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00606/1.029, allocations: 2.014 MB / 0.7111 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004432/1.033, allocations: 2.085 MB / 0.7131 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of SimCode: time 1.193e-06/1.033, allocations: 4 kB / 0.7131 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3779/1.411, allocations: 72.93 MB / 0.7843 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 59.5/60.91, allocations: 8.734 kB / 0.7843 GB, free: 156.9 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_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_SpringDamperSystem.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)