Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.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.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 116.2 kB / 16.42 MB, free: 6.496 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.001192/0.001192, allocations: 183.9 kB / 17.35 MB, free: 5.762 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 / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002134/0.002134, allocations: 285.5 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9502/0.9502, allocations: 169.2 MB / 0.499 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 91.86 kB / 0.6821 GB, free: 6.914 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4082/0.41, allocations: 86.99 MB / 0.7671 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06467/0.4748, allocations: 67.42 MB / 0.8329 GB, free: 200 kB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02605/0.5008, allocations: 18.59 MB / 0.8511 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003094/0.504, allocations: 99.44 kB / 0.8512 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.005364/0.5094, allocations: 1.974 MB / 0.8531 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007651/0.5171, allocations: 2.822 MB / 0.8559 GB, free: 8.645 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005858/0.5229, allocations: 2.443 MB / 0.8582 GB, free: 6.219 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.01107/0.534, allocations: 8.287 MB / 0.8663 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002731/0.5368, allocations: 1.927 MB / 0.8682 GB, free: 11.94 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004436/0.5412, allocations: 2.145 MB / 0.8703 GB, free: 9.793 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002612/0.5438, allocations: 1.571 MB / 0.8718 GB, free: 8.215 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0005713/0.5444, allocations: 200 kB / 0.872 GB, free: 8.02 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004391/0.5488, allocations: 2.145 MB / 0.8741 GB, free: 5.871 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0009609/0.5498, allocations: 0.7008 MB / 0.8748 GB, free: 5.168 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002136/0.5519, allocations: 1.333 MB / 0.8761 GB, free: 3.828 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.006714/0.5587, allocations: 4.237 MB / 0.8802 GB, free: 15.58 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.5587, allocations: 3.984 kB / 0.8803 GB, free: 15.57 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.916e-06/0.5587, allocations: 0 / 0.8803 GB, free: 15.57 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001024/0.5588, allocations: 7.938 kB / 0.8803 GB, free: 15.57 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.006405/0.5652, allocations: 3.095 MB / 0.8833 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.5653, allocations: 12.03 kB / 0.8833 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002289/0.5676, allocations: 480.4 kB / 0.8838 GB, free: 11.9 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005602/0.5732, allocations: 2.887 MB / 0.8866 GB, free: 8.941 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.5734, allocations: 94.47 kB / 0.8867 GB, free: 8.848 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003108/0.5737, allocations: 139.9 kB / 0.8868 GB, free: 8.711 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003162/0.5769, allocations: 1.448 MB / 0.8882 GB, free: 7.172 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.5769, allocations: 3.938 kB / 0.8882 GB, free: 7.168 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.5771, allocations: 59.98 kB / 0.8883 GB, free: 7.109 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.463e-05/0.5771, allocations: 42.31 kB / 0.8883 GB, free: 7.066 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002753/0.5799, allocations: 1.121 MB / 0.8894 GB, free: 5.938 MB / 0.6544 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.01109/0.591, allocations: 7.738 MB / 0.897 GB, free: 13.62 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/0.5932, allocations: 1.281 MB / 0.8982 GB, free: 12.22 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.5942, allocations: 451.2 kB / 0.8986 GB, free: 11.78 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005258/0.5995, allocations: 2.708 MB / 0.9013 GB, free: 8.84 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/0.6007, allocations: 470.5 kB / 0.9017 GB, free: 8.363 MB / 0.67 GB Notification: Performance of pre-optimization done (n=62): time 2.615e-06/0.6007, allocations: 0 / 0.9017 GB, free: 8.363 MB / 0.67 GB Notification: Performance of matching and sorting (n=62): time 0.003357/0.604, allocations: 1.244 MB / 0.903 GB, free: 7.094 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.6041, allocations: 111.4 kB / 0.9031 GB, free: 6.961 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/0.6076, allocations: 2.083 MB / 0.9051 GB, free: 4.852 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001182/0.6077, allocations: 37.7 kB / 0.9051 GB, free: 4.809 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009801/0.6087, allocations: 1.026 MB / 0.9061 GB, free: 3.773 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.609, allocations: 236.8 kB / 0.9064 GB, free: 3.539 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005188/0.6096, allocations: 310.5 kB / 0.9067 GB, free: 3.23 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.6097, allocations: 305.1 kB / 0.9069 GB, free: 2.93 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.6108, allocations: 0.5493 MB / 0.9075 GB, free: 2.379 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.6123, allocations: 0.9657 MB / 0.9084 GB, free: 1.234 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002446/0.6148, allocations: 1.422 MB / 0.9098 GB, free: 15.65 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.6148, allocations: 4 kB / 0.9098 GB, free: 15.65 MB / 0.6856 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003588/0.6184, allocations: 1.745 MB / 0.9115 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 4.785e-05/0.6185, allocations: 41.62 kB / 0.9116 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/0.6185, allocations: 12 kB / 0.9116 GB, free: 13.83 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.16e-05/0.6185, allocations: 16 kB / 0.9116 GB, free: 13.81 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.6197, allocations: 304.3 kB / 0.9119 GB, free: 13.52 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.304e-05/0.6197, allocations: 35.86 kB / 0.9119 GB, free: 13.48 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.6214, allocations: 170.6 kB / 0.9121 GB, free: 13.31 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.6215, allocations: 59.98 kB / 0.9121 GB, free: 13.25 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001961/0.6235, allocations: 0.9795 MB / 0.9131 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001449/0.625, allocations: 0.958 MB / 0.914 GB, free: 11.14 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002427/0.6274, allocations: 1.429 MB / 0.9154 GB, free: 9.562 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.506e-06/0.6274, allocations: 4 kB / 0.9154 GB, free: 9.559 MB / 0.6856 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003595/0.631, allocations: 1.756 MB / 0.9171 GB, free: 7.785 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.6311, allocations: 37.64 kB / 0.9172 GB, free: 7.742 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/0.6311, allocations: 15.94 kB / 0.9172 GB, free: 7.727 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.6311, allocations: 16 kB / 0.9172 GB, free: 7.711 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.6323, allocations: 303.9 kB / 0.9175 GB, free: 7.414 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.384e-05/0.6323, allocations: 27.92 kB / 0.9175 GB, free: 7.387 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.6339, allocations: 147.1 kB / 0.9177 GB, free: 7.242 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.6341, allocations: 59.97 kB / 0.9177 GB, free: 7.184 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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.0003451/0.6344, allocations: 261.6 kB / 0.918 GB, free: 6.926 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000535/0.635, allocations: 209.3 kB / 0.9182 GB, free: 6.719 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/0.6378, allocations: 1.076 MB / 0.9192 GB, free: 5.633 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001821/0.6396, allocations: 0.7764 MB / 0.92 GB, free: 4.844 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.6396, allocations: 7.984 kB / 0.92 GB, free: 4.836 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008539/0.6405, allocations: 386.2 kB / 0.9204 GB, free: 4.438 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004055/0.6409, allocations: 16 kB / 0.9204 GB, free: 4.422 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.642, allocations: 67.88 kB / 0.9204 GB, free: 4.355 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.6422, allocations: 52.48 kB / 0.9205 GB, free: 4.301 MB / 0.6856 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00287/0.6451, allocations: 1.171 MB / 0.9216 GB, free: 3.125 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003411/0.6485, allocations: 1.757 MB / 0.9233 GB, free: 1.348 MB / 0.6856 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009192/0.6494, allocations: 408.3 kB / 0.9237 GB, free: 0.9414 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002406/0.6519, allocations: 1.373 MB / 0.9251 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of Backend: time 5.11e-07/0.6519, allocations: 0 / 0.9251 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.006529/0.6584, allocations: 2.507 MB / 0.9275 GB, free: 13.04 MB / 0.7012 GB Notification: Performance of SimCode: time 0.009184/0.6676, allocations: 4.771 MB / 0.9322 GB, free: 8.238 MB / 0.7012 GB Notification: Performance of Templates: time 0.4025/1.07, allocations: 45.86 MB / 0.977 GB, free: 169.2 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)