Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation") translateModel(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000757/0.0007571, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.004462/0.004462, allocations: 170.4 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.137/1.137, allocations: 205.4 MB / 222.4 MB, free: 5.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.319/1.319, allocations: 252 MB / 0.5105 GB, free: 4.691 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004495, allocations: 12 kB / 0.6249 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.354, allocations: 106.3 MB / 0.7287 GB, free: 11.28 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation): time 0.04653/0.4005, allocations: 55.82 MB / 0.7832 GB, free: 3.266 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02013/0.4207, allocations: 17.64 MB / 0.8004 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.4224, allocations: 55.62 kB / 0.8005 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002258/0.4247, allocations: 0.902 MB / 0.8014 GB, free: 0.625 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004354/0.4291, allocations: 2.041 MB / 0.8034 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003517/0.4326, allocations: 1.731 MB / 0.8051 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004899/0.4375, allocations: 5 MB / 0.8099 GB, free: 7.855 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001396/0.4389, allocations: 1.155 MB / 0.8111 GB, free: 6.664 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001723/0.4407, allocations: 1.295 MB / 0.8123 GB, free: 5.363 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001062/0.4417, allocations: 1.05 MB / 0.8134 GB, free: 4.309 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.4419, allocations: 56 kB / 0.8134 GB, free: 4.254 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.4439, allocations: 1.294 MB / 0.8147 GB, free: 2.957 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002828/0.4442, allocations: 334.5 kB / 0.815 GB, free: 2.629 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006254/0.4448, allocations: 0.7865 MB / 0.8158 GB, free: 1.832 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.002473/0.4473, allocations: 2.932 MB / 0.8186 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.4473, allocations: 4 kB / 0.8186 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.182e-06/0.4473, allocations: 0 / 0.8186 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.499e-05/0.4473, allocations: 4 kB / 0.8186 GB, free: 14.88 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.002667/0.45, allocations: 1.799 MB / 0.8204 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.4501, allocations: 12.03 kB / 0.8204 GB, free: 13.01 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001461/0.4515, allocations: 398.6 kB / 0.8208 GB, free: 12.62 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002226/0.4538, allocations: 1.566 MB / 0.8223 GB, free: 11 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006053/0.4544, allocations: 201.9 kB / 0.8225 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.4545, allocations: 88 kB / 0.8226 GB, free: 10.71 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.4565, allocations: 1.122 MB / 0.8237 GB, free: 9.547 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.4565, allocations: 4 kB / 0.8237 GB, free: 9.543 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.818e-05/0.4566, allocations: 36 kB / 0.8237 GB, free: 9.508 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.4566, allocations: 20 kB / 0.8238 GB, free: 9.488 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002193/0.4588, allocations: 0.9602 MB / 0.8247 GB, free: 8.527 MB / 0.6387 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.005516/0.4644, allocations: 5.091 MB / 0.8297 GB, free: 3.141 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.4662, allocations: 0.7291 MB / 0.8304 GB, free: 2.402 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008893/0.4671, allocations: 380.6 kB / 0.8307 GB, free: 2.027 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001874/0.469, allocations: 1.832 MB / 0.8325 GB, free: 20 kB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001051/0.4701, allocations: 485.4 kB / 0.833 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002342/0.4703, allocations: 75.48 kB / 0.8331 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=44): time 1.603e-06/0.4703, allocations: 0 / 0.8331 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=44): time 0.002903/0.4733, allocations: 1.204 MB / 0.8342 GB, free: 14.23 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.4733, allocations: 85.11 kB / 0.8343 GB, free: 14.13 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.4747, allocations: 1.297 MB / 0.8356 GB, free: 12.82 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.262e-05/0.4748, allocations: 37.7 kB / 0.8356 GB, free: 12.78 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004732/0.4753, allocations: 0.6532 MB / 0.8363 GB, free: 12.12 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.4754, allocations: 141.9 kB / 0.8364 GB, free: 11.98 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.211e-05/0.4755, allocations: 61.69 kB / 0.8365 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4756, allocations: 338 kB / 0.8368 GB, free: 11.58 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00094/0.4765, allocations: 381.1 kB / 0.8371 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.4776, allocations: 0.6466 MB / 0.8378 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001959/0.4796, allocations: 1.004 MB / 0.8387 GB, free: 9.336 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.4796, allocations: 7.938 kB / 0.8388 GB, free: 9.328 MB / 0.6544 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002352/0.482, allocations: 1.193 MB / 0.8399 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001608/0.4822, allocations: 322.6 kB / 0.8402 GB, free: 7.707 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.4822, allocations: 8 kB / 0.8402 GB, free: 7.699 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.4822, allocations: 12 kB / 0.8402 GB, free: 7.688 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007336/0.4829, allocations: 199.7 kB / 0.8404 GB, free: 7.492 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.483, allocations: 15.98 kB / 0.8405 GB, free: 7.477 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008478/0.4838, allocations: 112.6 kB / 0.8406 GB, free: 7.367 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.478e-05/0.4839, allocations: 39.97 kB / 0.8406 GB, free: 7.328 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.891e-06/0.4839, allocations: 9.875 kB / 0.8406 GB, free: 7.32 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001889/0.4858, allocations: 0.9656 MB / 0.8416 GB, free: 6.348 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4858, allocations: 8 kB / 0.8416 GB, free: 6.34 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.326e-06/0.4858, allocations: 8 kB / 0.8416 GB, free: 6.332 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006071/0.4864, allocations: 192.2 kB / 0.8417 GB, free: 6.145 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.4865, allocations: 15.94 kB / 0.8418 GB, free: 6.129 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007463/0.4872, allocations: 108.5 kB / 0.8419 GB, free: 6.023 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.636e-05/0.4873, allocations: 43.92 kB / 0.8419 GB, free: 5.98 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (QHea.nextEventScaled,QHea.nextEvent,$PRE.QHea.nextEvent,QHea.last,QHea.b,QHea.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 73 * 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.0005129/0.4878, allocations: 494.6 kB / 0.8424 GB, free: 5.48 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.4879, allocations: 134.3 kB / 0.8425 GB, free: 5.348 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/0.4903, allocations: 1.078 MB / 0.8436 GB, free: 4.27 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.4903, allocations: 11.94 kB / 0.8436 GB, free: 4.258 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4903, allocations: 0 / 0.8436 GB, free: 4.258 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.4903, allocations: 3.938 kB / 0.8436 GB, free: 4.254 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 postOpt removeSimpleEquations (simulation): time 0.003521/0.4939, allocations: 2.228 MB / 0.8458 GB, free: 1.945 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.4939, allocations: 3.938 kB / 0.8458 GB, free: 1.941 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000559/0.4944, allocations: 136 kB / 0.8459 GB, free: 1.809 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.4945, allocations: 4 kB / 0.8459 GB, free: 1.805 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.789e-05/0.4945, allocations: 19.98 kB / 0.8459 GB, free: 1.785 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.4945, allocations: 8 kB / 0.8459 GB, free: 1.777 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4945, allocations: 0 / 0.8459 GB, free: 1.777 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/0.4967, allocations: 1.105 MB / 0.847 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003502/0.497, allocations: 311.2 kB / 0.8473 GB, free: 320 kB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.4972, allocations: 16 kB / 0.8473 GB, free: 304 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008457/0.498, allocations: 127.7 kB / 0.8474 GB, free: 176 kB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.689e-05/0.4981, allocations: 35.94 kB / 0.8475 GB, free: 140 kB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.936e-05/0.4982, allocations: 23.98 kB / 0.8475 GB, free: 116 kB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.00102/0.4992, allocations: 0.895 MB / 0.8484 GB, free: 15.22 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4992, allocations: 0 / 0.8484 GB, free: 15.22 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001453/0.5007, allocations: 0.6783 MB / 0.849 GB, free: 14.54 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007571/0.5014, allocations: 444.7 kB / 0.8494 GB, free: 14.11 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002979/0.5044, allocations: 1.503 MB / 0.8509 GB, free: 12.59 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5044, allocations: 4 kB / 0.8509 GB, free: 12.58 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0009857/0.5054, allocations: 0.4886 MB / 0.8514 GB, free: 12.08 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002583/0.508, allocations: 0.6141 MB / 0.852 GB, free: 11.48 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.5116, allocations: 2.77 MB / 0.8547 GB, free: 8.66 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006766/0.5123, allocations: 1.21 MB / 0.8559 GB, free: 7.422 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0009924/0.5133, allocations: 301.2 kB / 0.8562 GB, free: 7.137 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.5135, allocations: 111.4 kB / 0.8563 GB, free: 7.027 MB / 0.67 GB Notification: Performance of SimCode: time 2.8e-07/0.5135, allocations: 0 / 0.8563 GB, free: 7.027 MB / 0.67 GB Notification: Performance of Templates: time 0.03591/0.5495, allocations: 26.57 MB / 0.8822 GB, free: 12.86 MB / 0.7012 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & ./Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1) Environment - environmentSimulation: