Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.719/1.719, allocations: 288.4 MB / 303.4 MB, free: 8.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 173.5 kB / 372 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.758/1.758, allocations: 205.4 MB / 0.6307 GB, free: 9.961 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008495/0.0008503, allocations: 94.3 kB / 0.7441 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003969, allocations: 11.44 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2345, allocations: 115.3 MB / 0.9796 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06549/0.3001, allocations: 74.41 MB / 1.052 GB, free: 1.062 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.5701/0.8702, allocations: 20.96 MB / 1.073 GB, free: 18.74 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005606/0.8758, allocations: 91.47 kB / 1.073 GB, free: 18.74 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.004083/0.88, allocations: 0.8127 MB / 1.074 GB, free: 18.73 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.009039/0.889, allocations: 2.273 MB / 1.076 GB, free: 18.67 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.01032/0.8994, allocations: 2.819 MB / 1.079 GB, free: 18.59 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.02705/0.9264, allocations: 17.45 MB / 1.096 GB, free: 17.63 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01048/0.937, allocations: 5.262 MB / 1.101 GB, free: 16.7 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01346/0.9505, allocations: 4.629 MB / 1.105 GB, free: 15.72 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01129/0.9618, allocations: 4.575 MB / 1.11 GB, free: 14.83 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.002874/0.9648, allocations: 261.7 kB / 1.11 GB, free: 14.83 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009175/0.9739, allocations: 1.335 MB / 1.111 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.003983/0.978, allocations: 1.22 MB / 1.112 GB, free: 14.54 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.004651/0.9827, allocations: 1.108 MB / 1.114 GB, free: 14.32 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.01261/0.9953, allocations: 6.879 MB / 1.12 GB, free: 10.9 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.9954, allocations: 5.219 kB / 1.12 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of FrontEnd: time 4.389e-06/0.9954, allocations: 0 / 1.12 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.000574/0.996, allocations: 0 / 1.12 GB, free: 10.89 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: 835 * Number of variables: 835 Notification: Performance of Generate backend data structure: time 0.0213/1.017, allocations: 5.421 MB / 1.126 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.246e-05/1.017, allocations: 9.625 kB / 1.126 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006638/1.024, allocations: 0.8417 MB / 1.126 GB, free: 7.289 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01467/1.039, allocations: 5.014 MB / 1.131 GB, free: 5.414 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004051/1.039, allocations: 266.3 kB / 1.132 GB, free: 5.402 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00217/1.041, allocations: 340.6 kB / 1.132 GB, free: 5.398 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01603/1.057, allocations: 5.729 MB / 1.137 GB, free: 3.328 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.473e-05/1.058, allocations: 22.28 kB / 1.137 GB, free: 3.316 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008473/1.058, allocations: 147.1 kB / 1.138 GB, free: 3.316 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-05/1.059, allocations: 79.84 kB / 1.138 GB, free: 3.316 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/1.071, allocations: 5.558 MB / 1.143 GB, free: 2.172 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.05139/1.122, allocations: 24 MB / 1.167 GB, free: 13.23 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006396/1.129, allocations: 2.799 MB / 1.169 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003576/1.132, allocations: 1.924 MB / 1.171 GB, free: 8.512 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01747/1.15, allocations: 7.149 MB / 1.178 GB, free: 1.109 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003924/1.154, allocations: 1.948 MB / 1.18 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005966/1.16, allocations: 1.246 MB / 1.181 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=155): time 1.701e-05/1.16, allocations: 0 / 1.181 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of matching and sorting (n=155): time 0.0236/1.184, allocations: 7.629 MB / 1.189 GB, free: 6.211 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/1.184, allocations: 149.8 kB / 1.189 GB, free: 6.031 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01175/1.195, allocations: 4.844 MB / 1.194 GB, free: 1.199 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001044/1.197, allocations: 69.7 kB / 1.194 GB, free: 1.125 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.004137/1.201, allocations: 2.453 MB / 1.196 GB, free: 14.73 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.202, allocations: 0.5452 MB / 1.197 GB, free: 14.19 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000742/1.203, allocations: 56 kB / 1.197 GB, free: 14.14 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003734/1.204, allocations: 415.4 kB / 1.197 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003955/1.207, allocations: 1.66 MB / 1.199 GB, free: 12.06 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005085/1.213, allocations: 2.895 MB / 1.202 GB, free: 8.605 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004644/1.217, allocations: 2.099 MB / 1.204 GB, free: 6.508 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.472e-05/1.217, allocations: 12 kB / 1.204 GB, free: 6.496 MB / 0.7448 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01571/1.233, allocations: 6.03 MB / 1.209 GB, free: 460 kB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001109/1.234, allocations: 1.099 MB / 1.211 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/1.234, allocations: 39.98 kB / 1.211 GB, free: 14.85 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0716/1.306, allocations: 11.87 MB / 1.222 GB, free: 3.016 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003446/1.309, allocations: 0.6707 MB / 1.223 GB, free: 2.344 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009134/1.319, allocations: 5.034 MB / 1.228 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006807/1.325, allocations: 347.7 kB / 1.228 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008903/1.326, allocations: 163.9 kB / 1.228 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/1.326, allocations: 4 kB / 1.228 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01168/1.338, allocations: 5.364 MB / 1.233 GB, free: 7.344 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001479/1.338, allocations: 36 kB / 1.233 GB, free: 7.309 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06961/1.408, allocations: 11.68 MB / 1.245 GB, free: 11.66 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003588/1.412, allocations: 0.6513 MB / 1.246 GB, free: 11.01 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/1.425, allocations: 8.068 MB / 1.253 GB, free: 2.645 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00638/1.431, allocations: 336 kB / 1.254 GB, free: 2.316 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009136/1.432, allocations: 151.9 kB / 1.254 GB, free: 2.168 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 (287): * Single equations (assignments): 280 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.004835/1.437, allocations: 1.55 MB / 1.255 GB, free: 0.6055 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002235/1.439, allocations: 462.3 kB / 1.256 GB, free: 152 kB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/1.45, allocations: 4.873 MB / 1.261 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/1.45, allocations: 16 kB / 1.261 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/1.45, allocations: 5.859 kB / 1.261 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01908/1.47, allocations: 6.995 MB / 1.267 GB, free: 3.984 MB / 0.8073 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.03634/1.506, allocations: 13.22 MB / 1.28 GB, free: 6.695 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.347e-05/1.506, allocations: 4 kB / 1.28 GB, free: 6.691 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002461/1.508, allocations: 367.6 kB / 1.281 GB, free: 6.332 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06784/1.576, allocations: 11.9 MB / 1.292 GB, free: 10.46 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007956/1.577, allocations: 43.97 kB / 1.292 GB, free: 10.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007936/1.585, allocations: 4.378 MB / 1.297 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.585, allocations: 0 / 1.297 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02755/1.613, allocations: 9.731 MB / 1.306 GB, free: 12.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004295/1.617, allocations: 1.081 MB / 1.307 GB, free: 11.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002168/1.619, allocations: 36 kB / 1.307 GB, free: 11.06 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004989/1.624, allocations: 279.2 kB / 1.308 GB, free: 10.79 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004632/1.625, allocations: 105.2 kB / 1.308 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004471/1.625, allocations: 83.92 kB / 1.308 GB, free: 10.61 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.007228/1.632, allocations: 3.302 MB / 1.311 GB, free: 7.32 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.81e-07/1.633, allocations: 4 kB / 1.311 GB, free: 7.316 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.01446/1.647, allocations: 2.708 MB / 1.314 GB, free: 4.605 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,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 (127): * Single equations (assignments): 118 * 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,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002233/1.649, allocations: 0.5408 MB / 1.314 GB, free: 4.094 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.01847/1.668, allocations: 7.58 MB / 1.321 GB, free: 12.47 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/1.668, allocations: 4.891 kB / 1.321 GB, free: 12.47 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.006329/1.674, allocations: 2.518 MB / 1.324 GB, free: 9.957 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01812/1.692, allocations: 2.784 MB / 1.327 GB, free: 7.199 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02143/1.714, allocations: 11.45 MB / 1.338 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003051/1.717, allocations: 3.213 MB / 1.341 GB, free: 8.48 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.007672/1.725, allocations: 1.705 MB / 1.343 GB, free: 6.77 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002057/1.727, allocations: 351.3 kB / 1.343 GB, free: 6.426 MB / 0.8855 GB Notification: Performance of SimCode: time 1.863e-06/1.727, allocations: 0 / 1.343 GB, free: 6.426 MB / 0.8855 GB Notification: Performance of Templates: time 0.6299/2.357, allocations: 107.2 MB / 1.448 GB, free: 349.7 MB / 0.9636 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)