Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct.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.Cooling.Examples.Direct,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooETS.senTDisSup.T|cooETS.senTBuiSup.T|cooETS.senTBuiRet.T|cooETS.senTDisRet.T|cooETS.port_aSerCoo.m_flow|cooETS.ports_aChiWat.1..m_flow|cooETS.cheVal.m_flow|cooETS.conVal.y|cooETS.Q_flow|cooETS.Q",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct") translateModel(Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooETS.senTDisSup.T|cooETS.senTBuiSup.T|cooETS.senTBuiRet.T|cooETS.senTDisRet.T|cooETS.port_aSerCoo.m_flow|cooETS.ports_aChiWat.1..m_flow|cooETS.cheVal.m_flow|cooETS.conVal.y|cooETS.Q_flow|cooETS.Q",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 119.3 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.00151/0.001511, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.401/1.401, allocations: 222.9 MB / 241.1 MB, free: 15.2 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.606/2.606, allocations: 437.1 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 60.12 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.1/1.101, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct): time 0.1597/1.261, allocations: 155.3 MB / 1.319 GB, free: 8.027 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.05529/1.316, allocations: 34.24 MB / 1.352 GB, free: 5.703 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008476/1.325, allocations: 163.1 kB / 1.353 GB, free: 5.543 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.01049/1.335, allocations: 3.048 MB / 1.356 GB, free: 2.484 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.01972/1.355, allocations: 5.714 MB / 1.361 GB, free: 12.75 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.01354/1.369, allocations: 4.428 MB / 1.365 GB, free: 8.352 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.02467/1.393, allocations: 13.57 MB / 1.379 GB, free: 10.75 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008589/1.402, allocations: 3.659 MB / 1.382 GB, free: 7.027 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01268/1.415, allocations: 4.375 MB / 1.387 GB, free: 2.648 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006709/1.421, allocations: 2.96 MB / 1.389 GB, free: 15.68 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.002079/1.424, allocations: 408 kB / 1.39 GB, free: 15.28 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009043/1.433, allocations: 2.933 MB / 1.393 GB, free: 12.34 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.002611/1.435, allocations: 1.172 MB / 1.394 GB, free: 11.16 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.006254/1.442, allocations: 2.403 MB / 1.396 GB, free: 8.75 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.01799/1.46, allocations: 7.583 MB / 1.404 GB, free: 1.141 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/1.46, allocations: 0 / 1.404 GB, free: 1.141 MB / 1.123 GB Notification: Performance of FrontEnd: time 2.515e-06/1.46, allocations: 0 / 1.404 GB, free: 1.141 MB / 1.123 GB Notification: Performance of Transformations before backend: time 0.0002781/1.46, allocations: 0 / 1.404 GB, free: 1.141 MB / 1.123 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 567 * Number of variables: 567 Notification: Performance of Generate backend data structure: time 0.01536/1.475, allocations: 5.142 MB / 1.409 GB, free: 11.91 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/1.475, allocations: 12.58 kB / 1.409 GB, free: 11.89 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003071/1.478, allocations: 0.6022 MB / 1.409 GB, free: 11.29 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01186/1.49, allocations: 4.705 MB / 1.414 GB, free: 6.531 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002765/1.491, allocations: 176.4 kB / 1.414 GB, free: 6.355 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001016/1.492, allocations: 247.9 kB / 1.414 GB, free: 6.113 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007352/1.499, allocations: 2.47 MB / 1.417 GB, free: 3.5 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/1.499, allocations: 7.891 kB / 1.417 GB, free: 3.492 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005245/1.5, allocations: 95.98 kB / 1.417 GB, free: 3.398 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/1.5, allocations: 84.23 kB / 1.417 GB, free: 3.312 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004877/1.505, allocations: 1.843 MB / 1.419 GB, free: 1.453 MB / 1.139 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.0225/1.527, allocations: 13.22 MB / 1.431 GB, free: 3.328 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002641/1.53, allocations: 1.229 MB / 1.433 GB, free: 2.078 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/1.531, allocations: 0.6639 MB / 1.433 GB, free: 1.414 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008652/1.54, allocations: 4.234 MB / 1.437 GB, free: 12.79 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00159/1.542, allocations: 0.7193 MB / 1.438 GB, free: 12.05 MB / 1.17 GB Notification: Performance of pre-optimization done (n=123): time 4.989e-06/1.542, allocations: 0 / 1.438 GB, free: 12.05 MB / 1.17 GB Notification: Performance of matching and sorting (n=123): time 0.006531/1.548, allocations: 2.19 MB / 1.44 GB, free: 9.832 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.542e-05/1.548, allocations: 115.8 kB / 1.44 GB, free: 9.695 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00908/1.557, allocations: 3.533 MB / 1.444 GB, free: 6.133 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0005499/1.558, allocations: 57.7 kB / 1.444 GB, free: 6.07 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.002959/1.561, allocations: 1.774 MB / 1.446 GB, free: 4.285 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.00104/1.562, allocations: 476 kB / 1.446 GB, free: 3.816 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001796/1.564, allocations: 463.8 kB / 1.447 GB, free: 3.355 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001391/1.564, allocations: 305.1 kB / 1.447 GB, free: 3.055 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/1.566, allocations: 0.759 MB / 1.448 GB, free: 2.293 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002681/1.569, allocations: 1.385 MB / 1.449 GB, free: 0.6445 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004017/1.573, allocations: 2.042 MB / 1.451 GB, free: 14.39 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.747e-05/1.573, allocations: 4 kB / 1.451 GB, free: 14.39 MB / 1.186 GB Notification: Performance of matching and sorting (n=287) (initialization): time 0.006936/1.58, allocations: 2.591 MB / 1.453 GB, free: 11.79 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/1.58, allocations: 16.25 kB / 1.453 GB, free: 11.77 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.111e-05/1.58, allocations: 16 kB / 1.453 GB, free: 11.75 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006377/1.581, allocations: 120.9 kB / 1.454 GB, free: 11.63 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/1.582, allocations: 455.3 kB / 1.454 GB, free: 11.19 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008012/1.583, allocations: 0.6577 MB / 1.455 GB, free: 10.5 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003757/1.587, allocations: 266.3 kB / 1.455 GB, free: 10.24 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003694/1.587, allocations: 92.05 kB / 1.455 GB, free: 10.15 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00453/1.592, allocations: 1.453 MB / 1.456 GB, free: 8.691 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002553/1.595, allocations: 1.366 MB / 1.458 GB, free: 7.066 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003895/1.598, allocations: 1.986 MB / 1.46 GB, free: 4.875 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.21e-05/1.598, allocations: 8 kB / 1.46 GB, free: 4.867 MB / 1.186 GB Notification: Performance of matching and sorting (n=287) (initialization_lambda0): time 0.006127/1.605, allocations: 2.536 MB / 1.462 GB, free: 2.316 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/1.605, allocations: 12.31 kB / 1.462 GB, free: 2.305 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.062e-05/1.605, allocations: 20 kB / 1.462 GB, free: 2.285 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/1.605, allocations: 68.83 kB / 1.462 GB, free: 2.215 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/1.607, allocations: 451.3 kB / 1.463 GB, free: 1.773 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001746/1.608, allocations: 1.737 MB / 1.464 GB, free: 15.9 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003006/1.611, allocations: 215.5 kB / 1.465 GB, free: 15.69 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002383/1.612, allocations: 95.97 kB / 1.465 GB, free: 15.59 MB / 1.201 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.QCoo.nextTimeEvent,$whenCondition1,cooETS.con.con1.y,cooETS.int.local_reset,QCoo.nextTimeEventScaled,$PRE.QCoo.nextTimeEventScaled,QCoo.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 244 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006588/1.612, allocations: 310 kB / 1.465 GB, free: 15.29 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/1.614, allocations: 381.5 kB / 1.465 GB, free: 14.91 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004567/1.618, allocations: 1.869 MB / 1.467 GB, free: 13.04 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002387/1.621, allocations: 1.249 MB / 1.468 GB, free: 11.78 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/1.621, allocations: 4 kB / 1.468 GB, free: 11.77 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002016/1.623, allocations: 0.6465 MB / 1.469 GB, free: 11.11 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/1.624, allocations: 35.98 kB / 1.469 GB, free: 11.07 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/1.626, allocations: 71.88 kB / 1.469 GB, free: 11 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/1.626, allocations: 81.19 kB / 1.469 GB, free: 10.92 MB / 1.201 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004309/1.63, allocations: 1.762 MB / 1.471 GB, free: 9.145 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005202/1.636, allocations: 2.712 MB / 1.474 GB, free: 6.414 MB / 1.201 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001216/1.637, allocations: 0.6622 MB / 1.474 GB, free: 5.75 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.005796/1.643, allocations: 2.352 MB / 1.477 GB, free: 3.391 MB / 1.201 GB Notification: Performance of Backend: time 2.695e-06/1.643, allocations: 0 / 1.477 GB, free: 3.391 MB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.01307/1.656, allocations: 3.949 MB / 1.48 GB, free: 15.57 MB / 1.217 GB Notification: Performance of SimCode: time 0.02164/1.677, allocations: 8.283 MB / 1.488 GB, free: 7.27 MB / 1.217 GB Notification: Performance of Templates: time 0.9135/2.591, allocations: 77.89 MB / 1.565 GB, free: 377.6 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct.makefile (rm -f Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct.sim & ./Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Experimental.DHC.EnergyTransferStations.Cooling.Examples.Direct.pipe 2>&1)