Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.291/2.291, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001599/0.001599, allocations: 187.2 kB / 325.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.355/2.355, allocations: 205.4 MB / 0.5766 GB, free: 20.82 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001187/0.001187, allocations: 88.38 kB / 0.6811 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000464/0.0004642, allocations: 16.47 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2207/0.2212, allocations: 106.3 MB / 0.8989 GB, free: 65.53 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.09172/0.313, allocations: 67.44 MB / 0.9647 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.05975/0.3728, allocations: 19.6 MB / 0.9839 GB, free: 10.29 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004134/0.377, allocations: 87.31 kB / 0.984 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.006335/0.3834, allocations: 1.279 MB / 0.9852 GB, free: 8.914 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.01398/0.3974, allocations: 3.128 MB / 0.9883 GB, free: 5.781 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.01725/0.4147, allocations: 3.882 MB / 0.992 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.01918/0.4339, allocations: 8.867 MB / 1.001 GB, free: 9.07 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01333/0.4473, allocations: 5.362 MB / 1.006 GB, free: 3.652 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01153/0.4588, allocations: 4.084 MB / 1.01 GB, free: 15.55 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009244/0.4681, allocations: 3.4 MB / 1.013 GB, free: 12.14 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.002145/0.4703, allocations: 260 kB / 1.014 GB, free: 11.89 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007294/0.4776, allocations: 1.225 MB / 1.015 GB, free: 10.66 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.003553/0.4812, allocations: 1.214 MB / 1.016 GB, free: 9.441 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.003442/0.4847, allocations: 1.132 MB / 1.017 GB, free: 8.301 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.01404/0.4988, allocations: 6.979 MB / 1.024 GB, free: 1.305 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.4989, allocations: 4 kB / 1.024 GB, free: 1.301 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.537e-06/0.4989, allocations: 0 / 1.024 GB, free: 1.301 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0003181/0.4992, allocations: 0 / 1.024 GB, free: 1.301 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 851 * Number of variables: 851 Notification: Performance of Generate backend data structure: time 0.02032/0.5195, allocations: 5.526 MB / 1.029 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.5196, allocations: 15.97 kB / 1.029 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00675/0.5264, allocations: 0.8594 MB / 1.03 GB, free: 10.8 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01717/0.5436, allocations: 4.777 MB / 1.035 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004523/0.5441, allocations: 267.2 kB / 1.035 GB, free: 5.688 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001677/0.5458, allocations: 355.9 kB / 1.035 GB, free: 5.34 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01972/0.5655, allocations: 5.821 MB / 1.041 GB, free: 15.25 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001546/0.5657, allocations: 7.938 kB / 1.041 GB, free: 15.25 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001355/0.5671, allocations: 148 kB / 1.041 GB, free: 15.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.5672, allocations: 87.98 kB / 1.041 GB, free: 15.02 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01902/0.5863, allocations: 5.617 MB / 1.047 GB, free: 9.387 MB / 0.698 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.703/1.289, allocations: 24.41 MB / 1.071 GB, free: 131.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01694/1.306, allocations: 3.012 MB / 1.073 GB, free: 131.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03549/1.342, allocations: 7.407 MB / 1.081 GB, free: 129.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006462/1.348, allocations: 1.979 MB / 1.083 GB, free: 128.6 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007901/1.356, allocations: 1.284 MB / 1.084 GB, free: 128.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=163): time 1.723e-05/1.356, allocations: 0 / 1.084 GB, free: 128.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=163): time 0.0521/1.408, allocations: 7.725 MB / 1.091 GB, free: 124.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001912/1.409, allocations: 306 kB / 1.092 GB, free: 123.8 MB / 0.698 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Fluid/Actuators/BaseClasses/ValveParameters.mo:29:3-35:74:writable] Warning: Parameter val.res3.dpValve_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Fluid/Interfaces/PartialTwoPortInterface.mo:8:3-10:52:writable] Warning: Parameter val.res3.m_flow_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Fluid/Actuators/BaseClasses/ValveParameters.mo:29:3-35:74:writable] Warning: Parameter val.res1.dpValve_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Fluid/Interfaces/PartialTwoPortInterface.mo:8:3-10:52:writable] Warning: Parameter val.res1.m_flow_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02025/1.429, allocations: 5.277 MB / 1.097 GB, free: 121.1 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.001066/1.43, allocations: 72.31 kB / 1.097 GB, free: 121.1 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.004926/1.435, allocations: 2.518 MB / 1.099 GB, free: 119 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.00173/1.437, allocations: 0.5736 MB / 1.1 GB, free: 118.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008374/1.438, allocations: 50.91 kB / 1.1 GB, free: 118.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0004059/1.438, allocations: 428.9 kB / 1.1 GB, free: 118.1 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008/1.446, allocations: 1.727 MB / 1.102 GB, free: 117.2 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00937/1.456, allocations: 2.994 MB / 1.105 GB, free: 114.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009113/1.465, allocations: 2.191 MB / 1.107 GB, free: 113.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.106e-05/1.465, allocations: 11.58 kB / 1.107 GB, free: 113.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=360) (initialization): time 0.02754/1.493, allocations: 6.234 MB / 1.113 GB, free: 107.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.002996/1.496, allocations: 15.53 MB / 1.128 GB, free: 90.52 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/1.496, allocations: 39.98 kB / 1.129 GB, free: 90.48 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1365/1.632, allocations: 11.88 MB / 1.14 GB, free: 78.63 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005816/1.638, allocations: 0.7462 MB / 1.141 GB, free: 77.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/1.651, allocations: 5.029 MB / 1.146 GB, free: 72.77 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008097/1.659, allocations: 356.7 kB / 1.146 GB, free: 72.43 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009888/1.66, allocations: 173 kB / 1.146 GB, free: 72.26 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/1.66, allocations: 4 kB / 1.146 GB, free: 72.25 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01531/1.676, allocations: 5.554 MB / 1.152 GB, free: 66.68 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/1.676, allocations: 37.06 kB / 1.152 GB, free: 66.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1345/1.81, allocations: 11.69 MB / 1.163 GB, free: 55 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005747/1.816, allocations: 0.7372 MB / 1.164 GB, free: 54.26 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0179/1.834, allocations: 8.133 MB / 1.172 GB, free: 45.83 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007304/1.842, allocations: 341.2 kB / 1.172 GB, free: 45.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009485/1.843, allocations: 163.9 kB / 1.172 GB, free: 45.34 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (303): * Single equations (assignments): 292 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.004517/1.847, allocations: 1.583 MB / 1.174 GB, free: 43.75 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001717/1.849, allocations: 478.1 kB / 1.174 GB, free: 43.27 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01474/1.864, allocations: 4.974 MB / 1.179 GB, free: 38.29 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.796e-05/1.864, allocations: 20 kB / 1.179 GB, free: 38.27 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/1.864, allocations: 0 / 1.179 GB, free: 38.27 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03565/1.899, allocations: 7.132 MB / 1.186 GB, free: 30.88 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05371/1.953, allocations: 13.5 MB / 1.199 GB, free: 17.31 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.249e-05/1.953, allocations: 0 / 1.199 GB, free: 17.31 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004753/1.958, allocations: 443.5 kB / 1.2 GB, free: 16.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1318/2.09, allocations: 11.9 MB / 1.211 GB, free: 5.035 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006641/2.09, allocations: 55.92 kB / 1.211 GB, free: 4.98 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/2.101, allocations: 4.362 MB / 1.216 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/2.101, allocations: 0 / 1.216 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04756/2.149, allocations: 9.938 MB / 1.225 GB, free: 6.566 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004817/2.154, allocations: 1.155 MB / 1.226 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001695/2.156, allocations: 35.98 kB / 1.227 GB, free: 5.352 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007173/2.163, allocations: 291.2 kB / 1.227 GB, free: 5.066 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008836/2.164, allocations: 117.8 kB / 1.227 GB, free: 4.953 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005214/2.164, allocations: 87.88 kB / 1.227 GB, free: 4.867 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.009879/2.174, allocations: 3.622 MB / 1.231 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.61e-07/2.174, allocations: 0 / 1.231 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01441/2.189, allocations: 2.774 MB / 1.233 GB, free: 14.52 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 8 (pump.vol.dynBal.U,hea.outCon.T,val.res1.filter.x[1],val.res1.filter.x[2],val.res3.filter.x[1],val.res3.filter.x[2],val.filter.x[1],val.filter.x[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,1 6,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00245/2.191, allocations: 0.5579 MB / 1.234 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0333/2.224, allocations: 7.882 MB / 1.241 GB, free: 6.078 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.725e-05/2.224, allocations: 6.812 kB / 1.241 GB, free: 6.07 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.01198/2.236, allocations: 2.557 MB / 1.244 GB, free: 3.516 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02345/2.26, allocations: 2.783 MB / 1.247 GB, free: 0.7578 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03794/2.298, allocations: 11.83 MB / 1.258 GB, free: 4.91 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006521/2.305, allocations: 3.383 MB / 1.262 GB, free: 1.5 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.01239/2.317, allocations: 1.762 MB / 1.263 GB, free: 15.73 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002629/2.32, allocations: 367.2 kB / 1.264 GB, free: 15.38 MB / 0.7605 GB Notification: Performance of SimCode: time 1.352e-06/2.32, allocations: 4 kB / 1.264 GB, free: 15.37 MB / 0.7605 GB Notification: Performance of Templates: time 0.3128/2.632, allocations: 111 MB / 1.372 GB, free: 0.9492 MB / 0.8542 GB