Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.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.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 199.5 kB / 18.79 MB, free: 4.156 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.482/1.482, allocations: 230.4 MB / 250 MB, free: 9.059 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.001965/0.001965, allocations: 80.05 kB / 366.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2957, allocations: 53.31 MB / 420.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007261/0.3029, allocations: 4.492 MB / 424.6 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003723/0.3066, allocations: 1.586 MB / 426.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000493/0.3071, allocations: 11.94 kB / 426.2 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005058/0.3076, allocations: 134.7 kB / 426.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007166/0.3084, allocations: 281.7 kB / 426.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.3094, allocations: 418.8 kB / 427.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.3107, allocations: 1.17 MB / 428.2 MB, free: 192 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003729/0.3111, allocations: 197.9 kB / 428.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000766/0.3118, allocations: 0.4984 MB / 428.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000682/0.3125, allocations: 0.537 MB / 429.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.3127, allocations: 96 kB / 429.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003537/0.313, allocations: 160 kB / 429.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.3133, allocations: 239.2 kB / 429.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004846/0.3138, allocations: 469.8 kB / 430.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00132/0.3151, allocations: 1.124 MB / 431.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3151, allocations: 0 / 431.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3151, allocations: 0 / 431.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.3151, allocations: 0 / 431.5 MB, free: 12.87 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003455/0.3186, allocations: 1.358 MB / 432.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.3187, allocations: 16.02 kB / 432.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001694/0.3188, allocations: 110.7 kB / 433 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005266/0.3194, allocations: 124.3 kB / 433.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008058/0.3202, allocations: 465.9 kB / 433.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.399e-05/0.3202, allocations: 58.38 kB / 433.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.3204, allocations: 71.94 kB / 433.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.3221, allocations: 0.8036 MB / 434.5 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.3221, allocations: 15.88 kB / 434.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.264e-05/0.3222, allocations: 28 kB / 434.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.3222, allocations: 16 kB / 434.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.3242, allocations: 0.8432 MB / 435.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004797/0.329, allocations: 2.401 MB / 437.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.3306, allocations: 0.6929 MB / 438.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009632/0.3315, allocations: 416.3 kB / 438.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.234e-05/0.3316, allocations: 24.98 kB / 438.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001283/0.3329, allocations: 0.5322 MB / 439.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.675e-06/0.3329, allocations: 0 / 439.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01151/0.3444, allocations: 4.169 MB / 443.6 MB, free: 364 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.3445, allocations: 64.41 kB / 443.7 MB, free: 288 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005627/0.345, allocations: 417.8 kB / 444.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.3451, allocations: 65.62 kB / 444.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003016/0.3454, allocations: 281.5 kB / 444.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003476/0.3458, allocations: 388.8 kB / 444.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003469/0.3461, allocations: 190.8 kB / 445 MB, free: 14.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.3463, allocations: 386.8 kB / 445.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.3473, allocations: 406.4 kB / 445.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.3484, allocations: 0.5072 MB / 446.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/0.3501, allocations: 0.744 MB / 447 MB, free: 12.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3501, allocations: 0 / 447 MB, free: 12.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003139/0.3532, allocations: 1.288 MB / 448.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3532, allocations: 10.66 kB / 448.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3532, allocations: 0 / 448.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.3544, allocations: 0.5294 MB / 448.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007978/0.3552, allocations: 199.7 kB / 449.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004559/0.3597, allocations: 3.411 MB / 452.5 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.361, allocations: 171.9 kB / 452.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.439e-05/0.3611, allocations: 35.98 kB / 452.7 MB, free: 7.016 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004553/0.3615, allocations: 229.6 kB / 452.9 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.3617, allocations: 83.47 kB / 453 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/0.3619, allocations: 107.2 kB / 453.1 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.3619, allocations: 8 kB / 453.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.3619, allocations: 7.984 kB / 453.1 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.3619, allocations: 7.922 kB / 453.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004803/0.3667, allocations: 2.468 MB / 455.6 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.3667, allocations: 0 / 455.6 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007824/0.3675, allocations: 172 kB / 455.8 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.3686, allocations: 0.5098 MB / 456.3 MB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.783e-05/0.3686, allocations: 35.97 kB / 456.3 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004042/0.3727, allocations: 3.184 MB / 459.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.3727, allocations: 8.031 kB / 459.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003812/0.3765, allocations: 1.753 MB / 461.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.3769, allocations: 248.4 kB / 461.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.3771, allocations: 32 kB / 461.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/0.3784, allocations: 199.7 kB / 461.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009079/0.3793, allocations: 376.4 kB / 462.1 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.121e-05/0.3794, allocations: 51.89 kB / 462.1 MB, free: 13.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003677/0.3797, allocations: 287.1 kB / 462.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3797, allocations: 0 / 462.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008052/0.3805, allocations: 240 kB / 462.6 MB, free: 12.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005378/0.3859, allocations: 2.603 MB / 465.2 MB, free: 10.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002592/0.3885, allocations: 1.087 MB / 466.3 MB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3885, allocations: 0 / 466.3 MB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.3902, allocations: 0.7273 MB / 467.1 MB, free: 8.305 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009231/0.3911, allocations: 157.7 kB / 467.2 MB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01406/0.4052, allocations: 7.278 MB / 474.5 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.4058, allocations: 0.9479 MB / 475.4 MB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003791/0.4062, allocations: 85.62 kB / 475.5 MB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004164/0.4066, allocations: 271.3 kB / 475.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4066, allocations: 0 / 475.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06492/0.4715, allocations: 24.54 MB / 0.4886 GB, free: 7.043 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.14, allocations: 8.062 kB / 0.4886 GB, free: 7.035 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)