Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: translateModel(BuildingSystems.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter") translateModel(BuildingSystems.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001509/0.001509, allocations: 187.9 kB / 17.2 MB, free: 5.684 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.318/1.318, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002543/0.002543, allocations: 288.5 kB / 291.3 MB, free: 14.56 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.166/1.166, allocations: 178.5 MB / 0.5079 GB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002662/0.002662, allocations: 91.84 kB / 0.6071 GB, free: 9.297 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.178, allocations: 89.14 MB / 0.6942 GB, free: 68 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.HeatMeter): time 0.3068/0.4848, allocations: 23.2 MB / 0.7168 GB, free: 37.19 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006461/0.4913, allocations: 5.095 MB / 0.7218 GB, free: 36.28 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.4926, allocations: 29.12 kB / 0.7218 GB, free: 36.27 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.4936, allocations: 282.7 kB / 0.7221 GB, free: 36.14 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.002092/0.4958, allocations: 0.7825 MB / 0.7228 GB, free: 35.8 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.4975, allocations: 0.7592 MB / 0.7236 GB, free: 35.63 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001496/0.4991, allocations: 1.606 MB / 0.7252 GB, free: 35.1 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00054/0.4996, allocations: 494.6 kB / 0.7256 GB, free: 34.9 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.5009, allocations: 0.6101 MB / 0.7262 GB, free: 34.62 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005006/0.5014, allocations: 457.8 kB / 0.7267 GB, free: 34.42 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.964e-05/0.5015, allocations: 48.56 kB / 0.7267 GB, free: 34.41 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009496/0.5024, allocations: 487.1 kB / 0.7272 GB, free: 34.23 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.5025, allocations: 133.2 kB / 0.7273 GB, free: 34.16 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002301/0.5028, allocations: 315 kB / 0.7276 GB, free: 33.98 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009567/0.5037, allocations: 0.9073 MB / 0.7285 GB, free: 33.64 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.5038, allocations: 2.906 kB / 0.7285 GB, free: 33.64 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.813e-06/0.5038, allocations: 0 / 0.7285 GB, free: 33.64 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.5038, allocations: 0 / 0.7285 GB, free: 33.64 MB / 0.545 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.001061/0.5048, allocations: 0.8926 MB / 0.7294 GB, free: 32.96 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.5049, allocations: 9.312 kB / 0.7294 GB, free: 32.96 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.5051, allocations: 70.81 kB / 0.7294 GB, free: 32.93 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/0.5058, allocations: 0.537 MB / 0.73 GB, free: 32.55 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.5058, allocations: 34.75 kB / 0.73 GB, free: 32.54 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.887e-05/0.5059, allocations: 37.84 kB / 0.73 GB, free: 32.53 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.5064, allocations: 440.1 kB / 0.7304 GB, free: 32.31 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.5065, allocations: 9.891 kB / 0.7305 GB, free: 32.31 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.5065, allocations: 18.34 kB / 0.7305 GB, free: 32.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.5065, allocations: 9.406 kB / 0.7305 GB, free: 32.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003912/0.5069, allocations: 302.2 kB / 0.7308 GB, free: 32.2 MB / 0.545 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.002007/0.5089, allocations: 1.925 MB / 0.7326 GB, free: 30.83 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004415/0.5094, allocations: 262 kB / 0.7329 GB, free: 30.72 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.5095, allocations: 119.6 kB / 0.733 GB, free: 30.68 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00058/0.5101, allocations: 0.8529 MB / 0.7338 GB, free: 29.72 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.5102, allocations: 31.25 kB / 0.7339 GB, free: 29.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=26): time 1.723e-06/0.5102, allocations: 0 / 0.7339 GB, free: 29.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=26): time 0.00058/0.5108, allocations: 377 kB / 0.7342 GB, free: 29.53 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.5108, allocations: 65.55 kB / 0.7343 GB, free: 29.46 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004191/0.5112, allocations: 475.2 kB / 0.7348 GB, free: 29.23 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.5112, allocations: 32.8 kB / 0.7348 GB, free: 29.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.5114, allocations: 256.1 kB / 0.735 GB, free: 28.99 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.869e-05/0.5114, allocations: 97.3 kB / 0.7351 GB, free: 28.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-05/0.5115, allocations: 69.67 kB / 0.7352 GB, free: 28.87 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.024e-05/0.5116, allocations: 362.7 kB / 0.7355 GB, free: 28.54 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.5118, allocations: 96.94 kB / 0.7356 GB, free: 28.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.5119, allocations: 168.2 kB / 0.7358 GB, free: 28.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.5122, allocations: 285.8 kB / 0.7361 GB, free: 28.23 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.5123, allocations: 0 / 0.7361 GB, free: 28.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000448/0.5127, allocations: 362.6 kB / 0.7364 GB, free: 28.07 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.5127, allocations: 7.062 kB / 0.7364 GB, free: 28.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/0.5127, allocations: 2.906 kB / 0.7364 GB, free: 28.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.5128, allocations: 2.938 kB / 0.7364 GB, free: 28.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.513, allocations: 74.33 kB / 0.7365 GB, free: 28.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.513, allocations: 10.78 kB / 0.7365 GB, free: 28.06 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.5133, allocations: 37.25 kB / 0.7365 GB, free: 28.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.076e-05/0.5133, allocations: 18.97 kB / 0.7365 GB, free: 28.03 MB / 0.545 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.0001771/0.5135, allocations: 179.2 kB / 0.7367 GB, free: 27.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.542e-05/0.5136, allocations: 48.81 kB / 0.7368 GB, free: 27.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006591/0.5143, allocations: 481.9 kB / 0.7372 GB, free: 27.66 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.5143, allocations: 2.875 kB / 0.7372 GB, free: 27.66 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5143, allocations: 3.938 kB / 0.7372 GB, free: 27.65 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004118/0.5147, allocations: 0.5638 MB / 0.7378 GB, free: 27.21 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.5161, allocations: 1.159 MB / 0.7389 GB, free: 26.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.5161, allocations: 1.562 kB / 0.7389 GB, free: 26.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001929/0.5163, allocations: 52.75 kB / 0.739 GB, free: 26.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.5163, allocations: 6.156 kB / 0.739 GB, free: 26.47 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.5163, allocations: 10.69 kB / 0.739 GB, free: 26.47 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.5164, allocations: 7.375 kB / 0.739 GB, free: 26.46 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.5164, allocations: 3.25 kB / 0.739 GB, free: 26.46 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/0.517, allocations: 0.6617 MB / 0.7396 GB, free: 26.08 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.5172, allocations: 178.7 kB / 0.7398 GB, free: 25.93 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.248e-05/0.5172, allocations: 6.906 kB / 0.7398 GB, free: 25.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.5175, allocations: 9.688 kB / 0.7398 GB, free: 25.92 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.5176, allocations: 30.14 kB / 0.7399 GB, free: 25.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.767e-05/0.5176, allocations: 15.14 kB / 0.7399 GB, free: 25.91 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003077/0.5179, allocations: 344.8 kB / 0.7402 GB, free: 25.75 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.11e-07/0.5179, allocations: 4 kB / 0.7402 GB, free: 25.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005731/0.5185, allocations: 202 kB / 0.7404 GB, free: 25.7 MB / 0.545 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.000539/0.519, allocations: 300.4 kB / 0.7407 GB, free: 25.55 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004572/0.5195, allocations: 320.3 kB / 0.741 GB, free: 25.44 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5195, allocations: 0 / 0.741 GB, free: 25.44 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.5197, allocations: 163.9 kB / 0.7411 GB, free: 25.39 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.5211, allocations: 333.9 kB / 0.7415 GB, free: 25.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.5225, allocations: 1.104 MB / 0.7425 GB, free: 24.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.5227, allocations: 0.8651 MB / 0.7434 GB, free: 23.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.5228, allocations: 51.84 kB / 0.7434 GB, free: 23.88 MB / 0.545 GB Notification: Performance of SimCode: time 4.71e-07/0.5228, allocations: 0 / 0.7434 GB, free: 23.88 MB / 0.545 GB Notification: Performance of Templates: time 0.01335/0.5362, allocations: 9.876 MB / 0.7531 GB, free: 22.72 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1)