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.001434/0.001434, 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.00154/0.00154, 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.45/1.45, 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.001984/0.001984, allocations: 71.88 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2887, allocations: 50.54 MB / 409.1 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006346/0.2951, allocations: 4.469 MB / 413.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003287/0.2985, allocations: 1.582 MB / 415.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004828/0.299, allocations: 11.94 kB / 415.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004784/0.2995, allocations: 130.7 kB / 415.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007967/0.3003, allocations: 281.6 kB / 415.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.3014, allocations: 427.2 kB / 415.9 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001424/0.3028, allocations: 1.166 MB / 417.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004495/0.3033, allocations: 265.7 kB / 417.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000801/0.3041, allocations: 0.4946 MB / 417.9 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007104/0.3048, allocations: 0.5332 MB / 418.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001704/0.305, allocations: 96 kB / 418.5 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003911/0.3054, allocations: 163.9 kB / 418.6 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003102/0.3057, allocations: 239.3 kB / 418.9 MB, free: 7.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005083/0.3063, allocations: 461.8 kB / 419.3 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001483/0.3078, allocations: 1.131 MB / 420.5 MB, free: 5.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.3078, allocations: 0 / 420.5 MB, free: 5.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3078, allocations: 0 / 420.5 MB, free: 5.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.377e-05/0.3078, allocations: 0 / 420.5 MB, free: 5.938 MB / 334.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.003746/0.3116, allocations: 1.352 MB / 421.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.3116, allocations: 8.031 kB / 421.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001853/0.3118, allocations: 114.7 kB / 421.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005304/0.3124, allocations: 120.3 kB / 422.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008471/0.3132, allocations: 473.9 kB / 422.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.846e-05/0.3133, allocations: 54.38 kB / 422.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.3134, allocations: 71.94 kB / 422.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.3152, allocations: 0.7998 MB / 423.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/0.3152, allocations: 11.95 kB / 423.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-05/0.3153, allocations: 24 kB / 423.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.3154, allocations: 16 kB / 423.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/0.3175, allocations: 0.847 MB / 424.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004818/0.3223, allocations: 2.405 MB / 426.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.3239, allocations: 0.7397 MB / 427.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009613/0.3249, allocations: 455.5 kB / 427.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.082e-05/0.325, allocations: 16.94 kB / 427.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001208/0.3262, allocations: 0.54 MB / 428.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.066e-06/0.3262, allocations: 0 / 428.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01167/0.3379, allocations: 4.183 MB / 432.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.338, allocations: 64.41 kB / 432.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005724/0.3386, allocations: 421.8 kB / 433.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.3387, allocations: 61.69 kB / 433.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.339, allocations: 281.5 kB / 433.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003962/0.3394, allocations: 392.8 kB / 433.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003406/0.3397, allocations: 190.8 kB / 434 MB, free: 7.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.3399, allocations: 374.8 kB / 434.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009607/0.3409, allocations: 414.4 kB / 434.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.342, allocations: 0.511 MB / 435.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.3436, allocations: 0.744 MB / 436.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3436, allocations: 0 / 436.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003083/0.3467, allocations: 1.292 MB / 437.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3468, allocations: 4 kB / 437.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3468, allocations: 8 kB / 437.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.3479, allocations: 0.5411 MB / 437.9 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007999/0.3487, allocations: 199.6 kB / 438.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0045/0.3532, allocations: 3.403 MB / 441.5 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.3546, allocations: 172 kB / 441.7 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.3547, allocations: 35.98 kB / 441.7 MB, free: 15.98 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.0004771/0.3552, allocations: 223.2 kB / 441.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.3554, allocations: 79.47 kB / 442 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002527/0.3557, allocations: 119.2 kB / 442.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.3557, allocations: 12 kB / 442.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.3557, allocations: 128 / 442.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.3557, allocations: 3.984 kB / 442.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004849/0.3606, allocations: 2.48 MB / 444.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.3606, allocations: 0 / 444.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007859/0.3614, allocations: 175.8 kB / 444.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001094/0.3625, allocations: 0.5061 MB / 445.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.3626, allocations: 31.97 kB / 445.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004266/0.3669, allocations: 3.188 MB / 448.5 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.3669, allocations: 11.95 kB / 448.5 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003933/0.3709, allocations: 1.768 MB / 450.3 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005274/0.3714, allocations: 236.5 kB / 450.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.3716, allocations: 32 kB / 450.6 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.3729, allocations: 203.7 kB / 450.8 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009691/0.3739, allocations: 384.4 kB / 451.1 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.91e-05/0.374, allocations: 39.97 kB / 451.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003595/0.3743, allocations: 287.1 kB / 451.5 MB, free: 5.855 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3743, allocations: 0 / 451.5 MB, free: 5.855 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007921/0.3751, allocations: 248 kB / 451.7 MB, free: 5.613 MB / 366.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.005397/0.3805, allocations: 2.612 MB / 454.3 MB, free: 3.082 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.3833, allocations: 1.157 MB / 455.5 MB, free: 1.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3833, allocations: 0 / 455.5 MB, free: 1.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.385, allocations: 0.7703 MB / 456.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009719/0.386, allocations: 145 kB / 456.4 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.4006, allocations: 7.312 MB / 463.7 MB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000716/0.4013, allocations: 0.9517 MB / 464.6 MB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005119/0.4019, allocations: 85.7 kB / 464.7 MB, free: 8.434 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000459/0.4023, allocations: 267.3 kB / 465 MB, free: 8.172 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4023, allocations: 0 / 465 MB, free: 8.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06348/0.4658, allocations: 24.03 MB / 489 MB, free: 404 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.47, allocations: 8.672 kB / 489 MB, free: 396 kB / 398.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)