Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001186, allocations: 193.2 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.614/2.614, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 63.91 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6203/0.6217, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02602/0.6478, allocations: 23.15 MB / 1.039 GB, free: 11.57 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0073/0.6551, allocations: 5.117 MB / 1.044 GB, free: 6.434 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.6562, allocations: 31.75 kB / 1.044 GB, free: 6.402 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009798/0.6572, allocations: 226.7 kB / 1.045 GB, free: 6.18 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002661/0.6599, allocations: 0.7426 MB / 1.045 GB, free: 5.434 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002905/0.6628, allocations: 0.6823 MB / 1.046 GB, free: 4.758 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.003399/0.6662, allocations: 2.175 MB / 1.048 GB, free: 2.574 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000858/0.6671, allocations: 401.2 kB / 1.048 GB, free: 2.176 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001299/0.6684, allocations: 0.5329 MB / 1.049 GB, free: 1.641 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008775/0.6693, allocations: 465.9 kB / 1.049 GB, free: 1.184 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.6695, allocations: 24 kB / 1.049 GB, free: 1.16 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001299/0.6708, allocations: 455 kB / 1.05 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002143/0.671, allocations: 127.4 kB / 1.05 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0005222/0.6715, allocations: 294.5 kB / 1.05 GB, free: 308 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001709/0.6732, allocations: 0.8958 MB / 1.051 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.6733, allocations: 0 / 1.051 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6733, allocations: 0 / 1.051 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.008e-05/0.6733, allocations: 0 / 1.051 GB, free: 15.4 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.00201/0.6753, allocations: 0.8881 MB / 1.052 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.6754, allocations: 16.03 kB / 1.052 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.6755, allocations: 74.72 kB / 1.052 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003627/0.6759, allocations: 72.17 kB / 1.052 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.6773, allocations: 0.5569 MB / 1.053 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.6773, allocations: 29 kB / 1.053 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.942e-05/0.6774, allocations: 40 kB / 1.053 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008306/0.6783, allocations: 440.6 kB / 1.053 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.6783, allocations: 0 / 1.053 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.856e-05/0.6783, allocations: 19.98 kB / 1.053 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.6784, allocations: 12 kB / 1.053 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005988/0.679, allocations: 299.8 kB / 1.054 GB, free: 12.86 MB / 0.8106 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003428/0.6824, allocations: 1.919 MB / 1.055 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005805/0.683, allocations: 258.8 kB / 1.056 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.6832, allocations: 120.8 kB / 1.056 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009685/0.6842, allocations: 0.8506 MB / 1.057 GB, free: 9.387 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.6843, allocations: 38.5 kB / 1.057 GB, free: 9.34 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 2.445e-06/0.6843, allocations: 0 / 1.057 GB, free: 9.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0008274/0.6851, allocations: 370.4 kB / 1.057 GB, free: 8.973 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.6852, allocations: 51.41 kB / 1.057 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000637/0.6858, allocations: 470.1 kB / 1.057 GB, free: 8.441 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.6859, allocations: 37.64 kB / 1.058 GB, free: 8.398 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.6861, allocations: 264 kB / 1.058 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.6862, allocations: 90.66 kB / 1.058 GB, free: 8.047 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.6863, allocations: 77.92 kB / 1.058 GB, free: 7.965 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.6865, allocations: 354.8 kB / 1.058 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.6867, allocations: 104.6 kB / 1.058 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002361/0.6869, allocations: 172 kB / 1.059 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.6873, allocations: 278.7 kB / 1.059 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.6873, allocations: 0 / 1.059 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006387/0.688, allocations: 364.8 kB / 1.059 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.688, allocations: 8 kB / 1.059 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.688, allocations: 0 / 1.059 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.688, allocations: 7.938 kB / 1.059 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.6883, allocations: 80.05 kB / 1.059 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.6883, allocations: 7.938 kB / 1.059 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.6887, allocations: 51.52 kB / 1.059 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.681e-05/0.6887, allocations: 12 kB / 1.059 GB, free: 6.492 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002605/0.689, allocations: 178.4 kB / 1.059 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.6891, allocations: 55.42 kB / 1.06 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007717/0.6899, allocations: 469 kB / 1.06 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.6899, allocations: 7.938 kB / 1.06 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.6899, allocations: 0 / 1.06 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005311/0.6904, allocations: 0.5723 MB / 1.061 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.6922, allocations: 1.148 MB / 1.062 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.6922, allocations: 4 kB / 1.062 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.6924, allocations: 51.84 kB / 1.062 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.6925, allocations: 4 kB / 1.062 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.6925, allocations: 8 kB / 1.062 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.6925, allocations: 4 kB / 1.062 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.6925, allocations: 7.938 kB / 1.062 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000875/0.6934, allocations: 0.664 MB / 1.062 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.6936, allocations: 176.4 kB / 1.063 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.215e-05/0.6937, allocations: 11.98 kB / 1.063 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/0.694, allocations: 16 kB / 1.063 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.6941, allocations: 31.84 kB / 1.063 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.034e-05/0.6941, allocations: 11.98 kB / 1.063 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003998/0.6945, allocations: 342.9 kB / 1.063 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6945, allocations: 4 kB / 1.063 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006767/0.6952, allocations: 191.8 kB / 1.063 GB, free: 2.328 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * 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 (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001759/0.697, allocations: 1.404 MB / 1.065 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005185/0.6975, allocations: 283.8 kB / 1.065 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.6975, allocations: 4 kB / 1.065 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002309/0.6978, allocations: 163.1 kB / 1.065 GB, free: 460 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.6993, allocations: 318.9 kB / 1.065 GB, free: 152 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00605/0.7054, allocations: 4.433 MB / 1.07 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.7058, allocations: 0.8707 MB / 1.07 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000441/0.7063, allocations: 116.6 kB / 1.071 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/0.7066, allocations: 191.4 kB / 1.071 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of SimCode: time 4.2e-07/0.7066, allocations: 4 kB / 1.071 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.7397, allocations: 16.15 MB / 1.086 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002272/0.74, allocations: 236.8 kB / 1.087 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.311/3.051, allocations: 3.938 kB / 1.087 GB, free: 10.23 MB / 0.8419 GB (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1)