Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: translateModel(Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaETS.senTDisSup.T|heaETS.senTDisRet.T|heaETS.senTBuiSup.T|heaETS.senTBuiRet.T|heaETS.hex.m1_flow|heaETS.hex.m2_flow|loa.m_flow|heaETS.conVal.y|heaETS.hex.port_a1.p|heaETS.hex.port_b1.p|heaETS.hex.port_a2.p|heaETS.hex.port_b2.p|heaETS.Q_flow|heaETS.Q",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect") translateModel(Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaETS.senTDisSup.T|heaETS.senTDisRet.T|heaETS.senTBuiSup.T|heaETS.senTBuiRet.T|heaETS.hex.m1_flow|heaETS.hex.m2_flow|loa.m_flow|heaETS.conVal.y|heaETS.hex.port_a1.p|heaETS.hex.port_b1.p|heaETS.hex.port_a2.p|heaETS.hex.port_b2.p|heaETS.Q_flow|heaETS.Q",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001691/0.001691, 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.001618/0.001618, 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.362/1.362, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.409/2.409, allocations: 437 MB / 0.7112 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 71.84 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7315/0.7329, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect): time 0.106/0.8389, allocations: 115.3 MB / 1.28 GB, free: 160 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.04215/0.8811, allocations: 31.15 MB / 1.31 GB, free: 0.9258 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004046/0.8852, allocations: 135.2 kB / 1.31 GB, free: 0.793 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.006855/0.8921, allocations: 2.737 MB / 1.313 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01156/0.9037, allocations: 4.761 MB / 1.318 GB, free: 9.262 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.009568/0.9133, allocations: 4.093 MB / 1.322 GB, free: 5.199 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01519/0.9285, allocations: 11.2 MB / 1.333 GB, free: 9.977 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005005/0.9335, allocations: 3.041 MB / 1.336 GB, free: 6.867 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008452/0.942, allocations: 3.736 MB / 1.339 GB, free: 3.129 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004624/0.9466, allocations: 2.431 MB / 1.342 GB, free: 0.6875 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.001035/0.9477, allocations: 356 kB / 1.342 GB, free: 348 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007769/0.9555, allocations: 3.713 MB / 1.346 GB, free: 12.62 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.001503/0.957, allocations: 1.02 MB / 1.347 GB, free: 11.6 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.002974/0.96, allocations: 2.06 MB / 1.349 GB, free: 9.527 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.9712, allocations: 7.038 MB / 1.356 GB, free: 2.469 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.9712, allocations: 0 / 1.356 GB, free: 2.469 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9713, allocations: 3.938 kB / 1.356 GB, free: 2.465 MB / 1.076 GB Notification: Performance of Transformations before backend: time 0.0001068/0.9714, allocations: 0 / 1.356 GB, free: 2.465 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 483 * Number of variables: 483 Notification: Performance of Generate backend data structure: time 0.009407/0.9808, allocations: 4.521 MB / 1.36 GB, free: 13.86 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.9808, allocations: 11.98 kB / 1.36 GB, free: 13.85 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004062/0.9849, allocations: 0.846 MB / 1.361 GB, free: 13 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00808/0.993, allocations: 4.138 MB / 1.365 GB, free: 8.801 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.9932, allocations: 155.8 kB / 1.365 GB, free: 8.648 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004392/0.9936, allocations: 212 kB / 1.365 GB, free: 8.441 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004669/0.9983, allocations: 2.344 MB / 1.367 GB, free: 6.012 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.133e-05/0.9984, allocations: 11.94 kB / 1.368 GB, free: 6 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.9986, allocations: 76 kB / 1.368 GB, free: 5.926 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.205e-05/0.9987, allocations: 75.48 kB / 1.368 GB, free: 5.852 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00473/1.003, allocations: 2.016 MB / 1.37 GB, free: 3.832 MB / 1.092 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.0171/1.021, allocations: 11.74 MB / 1.381 GB, free: 7.406 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003785/1.024, allocations: 1.638 MB / 1.383 GB, free: 5.746 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002023/1.026, allocations: 0.8865 MB / 1.384 GB, free: 4.855 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009633/1.036, allocations: 5.417 MB / 1.389 GB, free: 15.01 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002252/1.038, allocations: 0.9894 MB / 1.39 GB, free: 14 MB / 1.123 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009271/1.039, allocations: 142.4 kB / 1.39 GB, free: 13.86 MB / 1.123 GB Notification: Performance of pre-optimization done (n=134): time 3.687e-06/1.039, allocations: 0 / 1.39 GB, free: 13.86 MB / 1.123 GB Notification: Performance of matching and sorting (n=137): time 0.01405/1.053, allocations: 5.726 MB / 1.396 GB, free: 8.027 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/1.053, allocations: 120.1 kB / 1.396 GB, free: 7.887 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004133/1.058, allocations: 3.081 MB / 1.399 GB, free: 4.816 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0002668/1.058, allocations: 65.69 kB / 1.399 GB, free: 4.746 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.001276/1.059, allocations: 1.442 MB / 1.4 GB, free: 3.289 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/1.06, allocations: 493 kB / 1.401 GB, free: 2.801 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007046/1.06, allocations: 491.6 kB / 1.401 GB, free: 2.312 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001002/1.06, allocations: 309.1 kB / 1.401 GB, free: 2.008 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002151/1.063, allocations: 0.966 MB / 1.402 GB, free: 1.031 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002677/1.065, allocations: 1.505 MB / 1.404 GB, free: 15.31 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004443/1.07, allocations: 2.278 MB / 1.406 GB, free: 12.89 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/1.07, allocations: 0 / 1.406 GB, free: 12.89 MB / 1.139 GB Notification: Performance of matching and sorting (n=290) (initialization): time 0.006667/1.076, allocations: 3.005 MB / 1.409 GB, free: 9.867 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/1.076, allocations: 15.88 kB / 1.409 GB, free: 9.852 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/1.077, allocations: 16 kB / 1.409 GB, free: 9.836 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/1.078, allocations: 315.1 kB / 1.409 GB, free: 9.523 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/1.08, allocations: 0.4954 MB / 1.41 GB, free: 9.027 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/1.081, allocations: 1.46 MB / 1.411 GB, free: 7.516 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/1.084, allocations: 176 kB / 1.411 GB, free: 7.344 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002473/1.084, allocations: 99.95 kB / 1.411 GB, free: 7.246 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0032/1.087, allocations: 1.543 MB / 1.413 GB, free: 5.695 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002577/1.09, allocations: 1.467 MB / 1.414 GB, free: 4.023 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004339/1.094, allocations: 2.218 MB / 1.417 GB, free: 1.645 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.464e-05/1.094, allocations: 4 kB / 1.417 GB, free: 1.641 MB / 1.139 GB Notification: Performance of matching and sorting (n=290) (initialization_lambda0): time 0.006381/1.101, allocations: 2.911 MB / 1.419 GB, free: 14.71 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/1.101, allocations: 12 kB / 1.419 GB, free: 14.7 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/1.101, allocations: 12 kB / 1.419 GB, free: 14.69 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009564/1.102, allocations: 299.8 kB / 1.42 GB, free: 14.39 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/1.104, allocations: 491.3 kB / 1.42 GB, free: 13.91 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/1.106, allocations: 2.552 MB / 1.423 GB, free: 11.2 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/1.108, allocations: 180.4 kB / 1.423 GB, free: 11.02 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000226/1.109, allocations: 91.97 kB / 1.423 GB, free: 10.93 MB / 1.154 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.QHea.nextTimeEvent,$whenCondition1,heaETS.con.con1.y,heaETS.int.local_reset,heaETS.hex.flowRegime_nominal,heaETS.hex.flowRegime,QHea.nextTimeEventScaled,$PRE.QHea.nextTimeEventScaled,QHea.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (238): * Single equations (assignments): 234 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,14), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000512/1.109, allocations: 311.7 kB / 1.423 GB, free: 10.62 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000735/1.11, allocations: 323.9 kB / 1.424 GB, free: 10.3 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005837/1.116, allocations: 2.494 MB / 1.426 GB, free: 7.828 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004315/1.12, allocations: 2.05 MB / 1.428 GB, free: 5.707 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.517e-06/1.12, allocations: 3.984 kB / 1.428 GB, free: 5.703 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/1.122, allocations: 0.6449 MB / 1.429 GB, free: 5.035 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005151/1.122, allocations: 32 kB / 1.429 GB, free: 5.004 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/1.124, allocations: 148.2 kB / 1.429 GB, free: 4.859 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/1.124, allocations: 105.2 kB / 1.429 GB, free: 4.754 MB / 1.154 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006244/1.131, allocations: 2.414 MB / 1.431 GB, free: 2.332 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007179/1.138, allocations: 3.433 MB / 1.435 GB, free: 14.87 MB / 1.17 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00203/1.14, allocations: 0.9283 MB / 1.435 GB, free: 13.94 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.003286/1.143, allocations: 2.051 MB / 1.437 GB, free: 11.91 MB / 1.17 GB Notification: Performance of Backend: time 6.01e-07/1.143, allocations: 0 / 1.437 GB, free: 11.91 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.01173/1.155, allocations: 4.584 MB / 1.442 GB, free: 7.453 MB / 1.17 GB Notification: Performance of SimCode: time 0.01289/1.168, allocations: 7.084 MB / 1.449 GB, free: 344 kB / 1.17 GB Notification: Performance of Templates: time 0.124/1.292, allocations: 78.89 MB / 1.526 GB, free: 2.082 MB / 1.248 GB make -j1 -f Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect.makefile (rm -f Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect.sim & ./Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Heating.Examples.Indirect.pipe 2>&1)