Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.423/2.423, allocations: 287.9 MB / 302.9 MB, free: 8.242 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001417/0.001417, allocations: 173.2 kB / 371.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.13/2.13, allocations: 205.4 MB / 0.6301 GB, free: 10.42 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 89.09 kB / 0.7434 GB, free: 6.426 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004602/0.0004605, allocations: 11.61 kB / 0.8662 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2183, allocations: 115.3 MB / 0.9787 GB, free: 28.21 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.09024/0.3086, allocations: 67.44 MB / 1.045 GB, free: 8.605 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.03763/0.3463, allocations: 19.61 MB / 1.064 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003294/0.3496, allocations: 87.31 kB / 1.064 GB, free: 4.883 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.004805/0.3544, allocations: 1.279 MB / 1.065 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.3662, allocations: 3.139 MB / 1.068 GB, free: 464 kB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.5442/0.9104, allocations: 3.88 MB / 1.072 GB, free: 17.96 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01441/0.9248, allocations: 8.863 MB / 1.081 GB, free: 17.94 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01033/0.9352, allocations: 5.35 MB / 1.086 GB, free: 17.21 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01003/0.9452, allocations: 4.088 MB / 1.09 GB, free: 17.2 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007587/0.9529, allocations: 3.397 MB / 1.093 GB, free: 17.19 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.001885/0.9548, allocations: 263.4 kB / 1.093 GB, free: 17.19 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006663/0.9615, allocations: 1.228 MB / 1.095 GB, free: 17.19 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.002769/0.9643, allocations: 1.207 MB / 1.096 GB, free: 17.19 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.003569/0.9679, allocations: 1.138 MB / 1.097 GB, free: 17.15 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.01131/0.9792, allocations: 6.986 MB / 1.104 GB, free: 16.68 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.9793, allocations: 0 / 1.104 GB, free: 16.68 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.978e-06/0.9793, allocations: 7.219 kB / 1.104 GB, free: 16.68 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002549/0.9796, allocations: 0 / 1.104 GB, free: 16.68 MB / 0.6823 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.01483/0.9944, allocations: 5.525 MB / 1.109 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.9945, allocations: 8.125 kB / 1.109 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005158/0.9996, allocations: 0.8628 MB / 1.11 GB, free: 13.85 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01333/1.013, allocations: 4.776 MB / 1.115 GB, free: 13.1 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003401/1.013, allocations: 269.8 kB / 1.115 GB, free: 13.09 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/1.015, allocations: 356.6 kB / 1.115 GB, free: 13.09 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01462/1.029, allocations: 5.817 MB / 1.121 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/1.03, allocations: 10 kB / 1.121 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006954/1.03, allocations: 149.7 kB / 1.121 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.779e-05/1.03, allocations: 87.84 kB / 1.121 GB, free: 10.97 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/1.045, allocations: 5.613 MB / 1.127 GB, free: 9.875 MB / 0.6823 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.04629/1.091, allocations: 24.42 MB / 1.15 GB, free: 10.99 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007454/1.099, allocations: 3.012 MB / 1.153 GB, free: 10.43 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01855/1.117, allocations: 7.422 MB / 1.161 GB, free: 4.551 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005122/1.122, allocations: 1.982 MB / 1.163 GB, free: 3.117 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006263/1.129, allocations: 1.273 MB / 1.164 GB, free: 1.945 MB / 0.698 GB Notification: Performance of pre-optimization done (n=163): time 1.287e-05/1.129, allocations: 0 / 1.164 GB, free: 1.945 MB / 0.698 GB Notification: Performance of matching and sorting (n=163): time 0.03016/1.159, allocations: 7.727 MB / 1.171 GB, free: 11.97 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002161/1.159, allocations: 304 kB / 1.172 GB, free: 11.61 MB / 0.7136 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 9.0.0-master/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 9.0.0-master/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 9.0.0-master/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.01282/1.172, allocations: 5.28 MB / 1.177 GB, free: 6.594 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0006926/1.173, allocations: 69.38 kB / 1.177 GB, free: 6.523 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.003981/1.177, allocations: 2.513 MB / 1.179 GB, free: 4 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.001348/1.178, allocations: 0.5844 MB / 1.18 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000366/1.178, allocations: 59.28 kB / 1.18 GB, free: 3.363 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0003508/1.179, allocations: 423.7 kB / 1.18 GB, free: 2.945 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00462/1.183, allocations: 1.736 MB / 1.182 GB, free: 1.211 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006229/1.19, allocations: 2.995 MB / 1.185 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005617/1.195, allocations: 2.192 MB / 1.187 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.732e-05/1.195, allocations: 10.62 kB / 1.187 GB, free: 11.49 MB / 0.7292 GB Notification: Performance of matching and sorting (n=360) (initialization): time 0.01859/1.214, allocations: 6.224 MB / 1.193 GB, free: 5.461 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.008682/1.223, allocations: 15.54 MB / 1.208 GB, free: 4.465 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001326/1.223, allocations: 36 kB / 1.208 GB, free: 4.43 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08389/1.307, allocations: 11.87 MB / 1.22 GB, free: 8.598 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004531/1.311, allocations: 0.7469 MB / 1.221 GB, free: 7.891 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/1.322, allocations: 5.041 MB / 1.226 GB, free: 2.797 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006366/1.329, allocations: 371.7 kB / 1.226 GB, free: 2.43 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008226/1.33, allocations: 167.9 kB / 1.226 GB, free: 2.266 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/1.33, allocations: 4 kB / 1.226 GB, free: 2.262 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01377/1.343, allocations: 5.553 MB / 1.232 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/1.344, allocations: 38.52 kB / 1.232 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08235/1.426, allocations: 11.69 MB / 1.243 GB, free: 1.082 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004434/1.43, allocations: 0.7332 MB / 1.244 GB, free: 356 kB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01653/1.447, allocations: 8.124 MB / 1.252 GB, free: 7.93 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006081/1.453, allocations: 339.9 kB / 1.252 GB, free: 7.598 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008859/1.454, allocations: 163.9 kB / 1.252 GB, free: 7.438 MB / 0.7917 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.004725/1.459, allocations: 1.585 MB / 1.254 GB, free: 5.84 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001643/1.46, allocations: 478.1 kB / 1.254 GB, free: 5.367 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01379/1.474, allocations: 4.966 MB / 1.259 GB, free: 400 kB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.854e-05/1.474, allocations: 16 kB / 1.259 GB, free: 384 kB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.474, allocations: 4 kB / 1.259 GB, free: 380 kB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02705/1.501, allocations: 7.143 MB / 1.266 GB, free: 8.969 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04436/1.546, allocations: 13.49 MB / 1.279 GB, free: 11.41 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/1.546, allocations: 8.062 kB / 1.279 GB, free: 11.41 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003661/1.55, allocations: 439.5 kB / 1.28 GB, free: 10.98 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08113/1.631, allocations: 11.91 MB / 1.291 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000581/1.631, allocations: 51.95 kB / 1.291 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009496/1.641, allocations: 4.364 MB / 1.296 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.641, allocations: 0 / 1.296 GB, free: 10.62 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03492/1.676, allocations: 9.942 MB / 1.305 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00438/1.68, allocations: 1.147 MB / 1.306 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001695/1.682, allocations: 36 kB / 1.306 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005514/1.688, allocations: 295.2 kB / 1.307 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006763/1.688, allocations: 105.8 kB / 1.307 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004421/1.689, allocations: 83.92 kB / 1.307 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.009039/1.698, allocations: 3.626 MB / 1.31 GB, free: 11.35 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.11e-06/1.698, allocations: 0 / 1.31 GB, free: 11.35 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.01298/1.711, allocations: 2.791 MB / 1.313 GB, free: 8.555 MB / 0.8542 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.002072/1.713, allocations: 0.5593 MB / 1.314 GB, free: 8.035 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0242/1.737, allocations: 7.886 MB / 1.321 GB, free: 76 kB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/1.737, allocations: 0.9375 kB / 1.321 GB, free: 76 kB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.00842/1.746, allocations: 2.56 MB / 1.324 GB, free: 13.52 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.016/1.762, allocations: 2.794 MB / 1.327 GB, free: 10.76 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02613/1.788, allocations: 11.82 MB / 1.338 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005219/1.793, allocations: 3.376 MB / 1.341 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00882/1.802, allocations: 1.769 MB / 1.343 GB, free: 9.727 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001975/1.804, allocations: 363.3 kB / 1.344 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of SimCode: time 1.592e-06/1.804, allocations: 0 / 1.344 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of Templates: time 0.7715/2.575, allocations: 111 MB / 1.452 GB, free: 349 MB / 0.9636 GB