Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 115.3 kB / 16.42 MB, free: 6.02 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.001804/0.001804, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.247/2.247, allocations: 390.2 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 63.91 kB / 0.9516 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7021/0.7036, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter mov.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05431/0.7579, allocations: 53.33 MB / 1.141 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02381/0.7817, allocations: 15.2 MB / 1.156 GB, free: 4.531 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003167/0.7849, allocations: 88.09 kB / 1.156 GB, free: 4.5 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003668/0.7886, allocations: 1.132 MB / 1.157 GB, free: 3.863 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007345/0.796, allocations: 2.444 MB / 1.159 GB, free: 2.449 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00636/0.8024, allocations: 2.285 MB / 1.161 GB, free: 1.25 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.008115/0.8105, allocations: 4.636 MB / 1.166 GB, free: 15.07 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003289/0.8138, allocations: 1.619 MB / 1.167 GB, free: 14.31 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004967/0.8188, allocations: 1.962 MB / 1.169 GB, free: 13.41 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002846/0.8217, allocations: 1.353 MB / 1.171 GB, free: 12.78 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0006674/0.8223, allocations: 167.8 kB / 1.171 GB, free: 12.78 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004735/0.8271, allocations: 1.842 MB / 1.173 GB, free: 11.85 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0009567/0.8281, allocations: 0.5199 MB / 1.173 GB, free: 11.46 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002275/0.8304, allocations: 1.037 MB / 1.174 GB, free: 10.74 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.007083/0.8374, allocations: 3.327 MB / 1.177 GB, free: 8.52 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.8375, allocations: 1.062 kB / 1.177 GB, free: 8.52 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8375, allocations: 0 / 1.177 GB, free: 8.52 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001055/0.8376, allocations: 0 / 1.177 GB, free: 8.52 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.00658/0.8442, allocations: 2.528 MB / 1.18 GB, free: 6.621 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.8443, allocations: 8.594 kB / 1.18 GB, free: 6.621 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003263/0.8475, allocations: 0.532 MB / 1.18 GB, free: 6.379 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004414/0.852, allocations: 1.699 MB / 1.182 GB, free: 5.125 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.8521, allocations: 95.77 kB / 1.182 GB, free: 5.078 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000344/0.8524, allocations: 116.2 kB / 1.182 GB, free: 5.043 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003476/0.8559, allocations: 1.371 MB / 1.184 GB, free: 4.137 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.802e-05/0.856, allocations: 5.219 kB / 1.184 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.8561, allocations: 47.25 kB / 1.184 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.635e-05/0.8562, allocations: 44.19 kB / 1.184 GB, free: 4.09 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003122/0.8593, allocations: 1.126 MB / 1.185 GB, free: 3.539 MB / 0.92 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.01073/0.8701, allocations: 7.121 MB / 1.192 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00274/0.8728, allocations: 1.397 MB / 1.193 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.8739, allocations: 438 kB / 1.194 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005903/0.8799, allocations: 3.141 MB / 1.197 GB, free: 9 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001208/0.8811, allocations: 477.5 kB / 1.197 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=60): time 3.316e-06/0.8811, allocations: 0 / 1.197 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of matching and sorting (n=60): time 0.003614/0.8847, allocations: 1.264 MB / 1.198 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.8848, allocations: 62.69 kB / 1.198 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.8872, allocations: 1.534 MB / 1.2 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.307e-05/0.8873, allocations: 44.23 kB / 1.2 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007873/0.8881, allocations: 0.8777 MB / 1.201 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/0.8883, allocations: 216.8 kB / 1.201 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.8887, allocations: 203.1 kB / 1.201 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.8888, allocations: 342.8 kB / 1.202 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.8899, allocations: 406.3 kB / 1.202 GB, free: 5.512 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.8912, allocations: 0.7749 MB / 1.203 GB, free: 4.809 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002374/0.8936, allocations: 1.148 MB / 1.204 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.8937, allocations: 3.406 kB / 1.204 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003203/0.8969, allocations: 1.335 MB / 1.205 GB, free: 3.27 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.728e-05/0.8969, allocations: 40.17 kB / 1.205 GB, free: 3.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.8969, allocations: 14.56 kB / 1.205 GB, free: 3.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.01e-05/0.897, allocations: 16.38 kB / 1.205 GB, free: 3.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.8981, allocations: 266.3 kB / 1.205 GB, free: 3.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.779e-05/0.8981, allocations: 24.42 kB / 1.205 GB, free: 3.152 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.8995, allocations: 146.7 kB / 1.206 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.8996, allocations: 49.23 kB / 1.206 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001599/0.9012, allocations: 0.6949 MB / 1.206 GB, free: 2.656 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001291/0.9025, allocations: 0.7515 MB / 1.207 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002226/0.9048, allocations: 1.125 MB / 1.208 GB, free: 1.117 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.997e-06/0.9048, allocations: 3.969 kB / 1.208 GB, free: 1.117 MB / 0.9356 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.003052/0.9079, allocations: 1.296 MB / 1.209 GB, free: 372 kB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/0.9079, allocations: 37.7 kB / 1.209 GB, free: 328 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.9079, allocations: 16.03 kB / 1.209 GB, free: 312 kB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.908, allocations: 19.98 kB / 1.209 GB, free: 292 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.909, allocations: 255.6 kB / 1.21 GB, free: 36 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.721e-05/0.9091, allocations: 32.05 kB / 1.21 GB, free: 4 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.9105, allocations: 123.9 kB / 1.21 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.934e-05/0.9106, allocations: 59.92 kB / 1.21 GB, free: 15.82 MB / 0.9512 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 (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * 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.0003006/0.9109, allocations: 247.9 kB / 1.21 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003776/0.9113, allocations: 165.9 kB / 1.21 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002953/0.9142, allocations: 1.155 MB / 1.211 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002171/0.9164, allocations: 0.9939 MB / 1.212 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.9164, allocations: 3.938 kB / 1.212 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007473/0.9172, allocations: 330.7 kB / 1.213 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003522/0.9175, allocations: 27.92 kB / 1.213 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009874/0.9185, allocations: 59.94 kB / 1.213 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.9187, allocations: 52.58 kB / 1.213 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003084/0.9218, allocations: 1.076 MB / 1.214 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003645/0.9254, allocations: 1.662 MB / 1.216 GB, free: 9.938 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001018/0.9265, allocations: 437 kB / 1.216 GB, free: 9.512 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001632/0.9281, allocations: 1.028 MB / 1.217 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of Backend: time 5.01e-07/0.9281, allocations: 0 / 1.217 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005985/0.9341, allocations: 2.168 MB / 1.219 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of SimCode: time 0.006622/0.9408, allocations: 3.794 MB / 1.223 GB, free: 2.641 MB / 0.9512 GB Notification: Performance of Templates: time 0.05874/0.9995, allocations: 35.63 MB / 1.258 GB, free: 15.38 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)