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.001541/0.001541, allocations: 115.2 kB / 16.42 MB, free: 6.449 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.001128/0.001128, allocations: 183.9 kB / 17.35 MB, free: 5.738 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00214/0.00214, allocations: 288.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9491/0.9491, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003236/0.003236, allocations: 95.86 kB / 0.6821 GB, free: 6.914 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.4128, allocations: 86.97 MB / 0.7671 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.07053/0.4834, allocations: 67.45 MB / 0.8329 GB, free: 216 kB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02898/0.5124, allocations: 18.58 MB / 0.8511 GB, free: 13.58 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003268/0.5157, allocations: 103.4 kB / 0.8512 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.005809/0.5216, allocations: 1.991 MB / 0.8531 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0078/0.5294, allocations: 2.956 MB / 0.856 GB, free: 8.512 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.006304/0.5357, allocations: 2.447 MB / 0.8584 GB, free: 6.082 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.01213/0.5479, allocations: 8.295 MB / 0.8665 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00329/0.5512, allocations: 1.931 MB / 0.8684 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00509/0.5563, allocations: 2.149 MB / 0.8705 GB, free: 9.641 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003139/0.5594, allocations: 1.563 MB / 0.872 GB, free: 8.07 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0007119/0.5602, allocations: 204 kB / 0.8722 GB, free: 7.871 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004881/0.5651, allocations: 2.152 MB / 0.8743 GB, free: 5.715 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.5661, allocations: 0.6968 MB / 0.875 GB, free: 5.016 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.5686, allocations: 1.329 MB / 0.8763 GB, free: 3.68 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.007387/0.576, allocations: 4.245 MB / 0.8804 GB, free: 15.42 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.576, allocations: 0 / 0.8804 GB, free: 15.42 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.533e-06/0.576, allocations: 0 / 0.8804 GB, free: 15.42 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001137/0.5761, allocations: 0 / 0.8804 GB, free: 15.42 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.006951/0.5831, allocations: 3.103 MB / 0.8835 GB, free: 12.23 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.5831, allocations: 12.03 kB / 0.8835 GB, free: 12.22 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002458/0.5856, allocations: 476.4 kB / 0.8839 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00591/0.5915, allocations: 2.883 MB / 0.8867 GB, free: 8.797 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.5917, allocations: 94.47 kB / 0.8868 GB, free: 8.703 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003461/0.592, allocations: 147.8 kB / 0.887 GB, free: 8.559 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003124/0.5952, allocations: 1.445 MB / 0.8884 GB, free: 7.023 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.292e-05/0.5952, allocations: 0 / 0.8884 GB, free: 7.023 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.5954, allocations: 56 kB / 0.8884 GB, free: 6.969 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.113e-05/0.5954, allocations: 42.31 kB / 0.8885 GB, free: 6.926 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002737/0.5982, allocations: 1.121 MB / 0.8896 GB, free: 5.797 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.011/0.6092, allocations: 7.746 MB / 0.8971 GB, free: 13.47 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.6114, allocations: 1.286 MB / 0.8984 GB, free: 12.07 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.6124, allocations: 446.3 kB / 0.8988 GB, free: 11.63 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005114/0.6175, allocations: 2.712 MB / 0.9015 GB, free: 8.688 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001158/0.6187, allocations: 482.5 kB / 0.9019 GB, free: 8.199 MB / 0.67 GB Notification: Performance of pre-optimization done (n=62): time 3.136e-06/0.6187, allocations: 0 / 0.9019 GB, free: 8.199 MB / 0.67 GB Notification: Performance of matching and sorting (n=62): time 0.00326/0.622, allocations: 1.236 MB / 0.9031 GB, free: 6.938 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/0.6221, allocations: 119.4 kB / 0.9032 GB, free: 6.797 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003255/0.6253, allocations: 2.071 MB / 0.9053 GB, free: 4.699 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 9.516e-05/0.6255, allocations: 37.7 kB / 0.9053 GB, free: 4.656 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009445/0.6264, allocations: 1.03 MB / 0.9063 GB, free: 3.617 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002617/0.6267, allocations: 228.8 kB / 0.9065 GB, free: 3.391 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004676/0.6271, allocations: 318.5 kB / 0.9068 GB, free: 3.074 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.6272, allocations: 301.1 kB / 0.9071 GB, free: 2.777 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.6284, allocations: 0.5493 MB / 0.9077 GB, free: 2.227 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.6299, allocations: 0.9696 MB / 0.9086 GB, free: 1.078 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002404/0.6323, allocations: 1.418 MB / 0.91 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.6323, allocations: 4 kB / 0.91 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.00341/0.6357, allocations: 1.754 MB / 0.9117 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 5.559e-05/0.6358, allocations: 45.77 kB / 0.9117 GB, free: 13.68 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.6358, allocations: 12.09 kB / 0.9118 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.124e-05/0.6359, allocations: 19.94 kB / 0.9118 GB, free: 13.65 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.637, allocations: 299.5 kB / 0.9121 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.049e-05/0.637, allocations: 27.94 kB / 0.9121 GB, free: 13.33 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.6385, allocations: 170.6 kB / 0.9123 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.6386, allocations: 59.98 kB / 0.9123 GB, free: 13.1 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001869/0.6405, allocations: 0.9795 MB / 0.9133 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0014/0.6419, allocations: 0.958 MB / 0.9142 GB, free: 10.99 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002333/0.6443, allocations: 1.425 MB / 0.9156 GB, free: 9.414 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.432e-06/0.6443, allocations: 7.938 kB / 0.9156 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003377/0.6477, allocations: 1.752 MB / 0.9173 GB, free: 7.637 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.6477, allocations: 33.7 kB / 0.9173 GB, free: 7.598 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.6477, allocations: 16.59 kB / 0.9174 GB, free: 7.582 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.6477, allocations: 16 kB / 0.9174 GB, free: 7.566 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.6489, allocations: 307.5 kB / 0.9177 GB, free: 7.266 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.104e-05/0.6489, allocations: 23.94 kB / 0.9177 GB, free: 7.242 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.6504, allocations: 147.1 kB / 0.9178 GB, free: 7.098 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.6506, allocations: 55.98 kB / 0.9179 GB, free: 7.043 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.0004268/0.651, allocations: 259.8 kB / 0.9181 GB, free: 6.781 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004945/0.6515, allocations: 213.3 kB / 0.9183 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/0.6541, allocations: 1.072 MB / 0.9194 GB, free: 5.488 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001829/0.656, allocations: 0.7764 MB / 0.9201 GB, free: 4.699 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.656, allocations: 8 kB / 0.9201 GB, free: 4.691 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008318/0.6568, allocations: 386.2 kB / 0.9205 GB, free: 4.293 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003743/0.6572, allocations: 16 kB / 0.9205 GB, free: 4.277 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.6583, allocations: 71.86 kB / 0.9206 GB, free: 4.207 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.6585, allocations: 48.5 kB / 0.9206 GB, free: 4.156 MB / 0.6856 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002852/0.6613, allocations: 1.175 MB / 0.9218 GB, free: 2.973 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003156/0.6645, allocations: 1.741 MB / 0.9235 GB, free: 1.211 MB / 0.6856 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008723/0.6654, allocations: 412.3 kB / 0.9239 GB, free: 0.8008 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002263/0.6677, allocations: 1.381 MB / 0.9252 GB, free: 15.41 MB / 0.7012 GB Notification: Performance of Backend: time 3.81e-07/0.6677, allocations: 4 kB / 0.9252 GB, free: 15.4 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.006092/0.6738, allocations: 2.508 MB / 0.9277 GB, free: 12.88 MB / 0.7012 GB Notification: Performance of SimCode: time 0.00896/0.6827, allocations: 4.768 MB / 0.9323 GB, free: 8.09 MB / 0.7012 GB Notification: Performance of Templates: time 0.3874/1.07, allocations: 45.87 MB / 0.9771 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)