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.0008759/0.0008759, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007153/0.007153, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.371/1.371, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.621/2.621, allocations: 437.8 MB / 0.7121 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000491/0.0004914, allocations: 12 kB / 0.8729 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6825/0.683, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02374/0.7068, allocations: 22.52 MB / 1.045 GB, free: 9.277 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008227/0.715, allocations: 5.059 MB / 1.05 GB, free: 4.203 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008065/0.7159, allocations: 19.88 kB / 1.05 GB, free: 4.184 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008831/0.7168, allocations: 238.6 kB / 1.05 GB, free: 3.949 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002106/0.7189, allocations: 0.7193 MB / 1.051 GB, free: 3.227 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.7207, allocations: 0.6931 MB / 1.052 GB, free: 2.539 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002595/0.7233, allocations: 2.171 MB / 1.054 GB, free: 368 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006714/0.724, allocations: 400.6 kB / 1.054 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009134/0.7249, allocations: 0.5172 MB / 1.055 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006467/0.7256, allocations: 446 kB / 1.055 GB, free: 15 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.351e-05/0.7256, allocations: 24 kB / 1.055 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.7267, allocations: 454.9 kB / 1.056 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.7268, allocations: 123.5 kB / 1.056 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003012/0.7272, allocations: 292.3 kB / 1.056 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.7282, allocations: 0.8917 MB / 1.057 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.7282, allocations: 0 / 1.057 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7282, allocations: 0 / 1.057 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.882e-06/0.7282, allocations: 0 / 1.057 GB, free: 13.23 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.001358/0.7296, allocations: 0.7792 MB / 1.058 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.7297, allocations: 8.031 kB / 1.058 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001712/0.7298, allocations: 82.7 kB / 1.058 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001963/0.73, allocations: 64.22 kB / 1.058 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009294/0.731, allocations: 0.5724 MB / 1.058 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.731, allocations: 29 kB / 1.058 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.001e-05/0.7311, allocations: 44 kB / 1.058 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006678/0.7318, allocations: 428.7 kB / 1.059 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.7318, allocations: 4 kB / 1.059 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.7318, allocations: 16 kB / 1.059 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.307e-05/0.7319, allocations: 11.94 kB / 1.059 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004812/0.7323, allocations: 303.8 kB / 1.059 GB, free: 10.79 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.00259/0.735, allocations: 1.931 MB / 1.061 GB, free: 8.727 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.7355, allocations: 262.8 kB / 1.061 GB, free: 8.461 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002559/0.7358, allocations: 124.8 kB / 1.061 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009159/0.7367, allocations: 0.8624 MB / 1.062 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.7367, allocations: 34.56 kB / 1.062 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 1.984e-06/0.7367, allocations: 0 / 1.062 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0006642/0.7374, allocations: 370.4 kB / 1.063 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.7375, allocations: 63.28 kB / 1.063 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005339/0.738, allocations: 470.1 kB / 1.063 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.17e-05/0.738, allocations: 33.7 kB / 1.063 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.7382, allocations: 260 kB / 1.063 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.649e-05/0.7383, allocations: 90.66 kB / 1.063 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-05/0.7384, allocations: 33.7 kB / 1.063 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002244/0.7386, allocations: 358.8 kB / 1.064 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.7388, allocations: 96.61 kB / 1.064 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.739, allocations: 168.1 kB / 1.064 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.7394, allocations: 290.6 kB / 1.064 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.7394, allocations: 4 kB / 1.064 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005435/0.74, allocations: 364.8 kB / 1.065 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.74, allocations: 8 kB / 1.065 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.74, allocations: 0 / 1.065 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.74, allocations: 16.09 kB / 1.065 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.7403, allocations: 67.91 kB / 1.065 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.7403, allocations: 4 kB / 1.065 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.7407, allocations: 47.52 kB / 1.065 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.7407, allocations: 15.98 kB / 1.065 GB, free: 4.438 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.0001972/0.7409, allocations: 182.4 kB / 1.065 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.741, allocations: 51.44 kB / 1.065 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007848/0.7418, allocations: 472.9 kB / 1.066 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.7419, allocations: 11.92 kB / 1.066 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.7419, allocations: 0 / 1.066 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005645/0.7424, allocations: 0.5684 MB / 1.066 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.7443, allocations: 1.156 MB / 1.067 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.7443, allocations: 0 / 1.067 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.7445, allocations: 56.09 kB / 1.067 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.7445, allocations: 4 kB / 1.067 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.7446, allocations: 11.98 kB / 1.067 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.7446, allocations: 4 kB / 1.067 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.7446, allocations: 0 / 1.067 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008753/0.7455, allocations: 0.6755 MB / 1.068 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.7457, allocations: 176.3 kB / 1.068 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.837e-05/0.7458, allocations: 19.98 kB / 1.068 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/0.7461, allocations: 15.91 kB / 1.068 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.074e-05/0.7461, allocations: 27.91 kB / 1.068 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.7462, allocations: 19.98 kB / 1.068 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004049/0.7466, allocations: 338.9 kB / 1.069 GB, free: 444 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7466, allocations: 0 / 1.069 GB, free: 444 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006811/0.7473, allocations: 195.8 kB / 1.069 GB, free: 248 kB / 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.001663/0.7489, allocations: 1.384 MB / 1.07 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005098/0.7495, allocations: 291.7 kB / 1.07 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.7495, allocations: 0 / 1.07 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002344/0.7497, allocations: 163.8 kB / 1.071 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/0.7515, allocations: 331.5 kB / 1.071 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005717/0.7572, allocations: 4.507 MB / 1.075 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.7577, allocations: 0.8591 MB / 1.076 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0004992/0.7582, allocations: 120.7 kB / 1.076 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002504/0.7585, allocations: 191.4 kB / 1.076 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of SimCode: time 8.32e-07/0.7585, allocations: 0 / 1.076 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.7899, allocations: 15.98 MB / 1.092 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.7901, allocations: 231.1 kB / 1.092 GB, free: 8.277 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.263/3.054, allocations: 0 / 1.092 GB, free: 8.277 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)