Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 195.3 kB / 16.54 MB, free: 6.672 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.441/1.441, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.986/2.986, allocations: 472.6 MB / 0.7451 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 64.08 kB / 0.912 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4057/0.407, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.09613/0.5032, allocations: 81.02 MB / 1.147 GB, free: 9.129 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.04002/0.5433, allocations: 21.06 MB / 1.168 GB, free: 4.023 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006363/0.5497, allocations: 107.4 kB / 1.168 GB, free: 3.918 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.01189/0.5616, allocations: 4.385 MB / 1.172 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0119/0.5735, allocations: 2.848 MB / 1.175 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.00854/0.5821, allocations: 2.417 MB / 1.177 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0247/0.6068, allocations: 18.31 MB / 1.195 GB, free: 7.902 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01047/0.6173, allocations: 7.214 MB / 1.202 GB, free: 0.5938 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01422/0.6316, allocations: 5.784 MB / 1.208 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01113/0.6427, allocations: 5.093 MB / 1.213 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.00474/0.6475, allocations: 0.543 MB / 1.213 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01511/0.6627, allocations: 1.966 MB / 1.215 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.007219/0.67, allocations: 1.752 MB / 1.217 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.01065/0.6807, allocations: 3.468 MB / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01639/0.6971, allocations: 9.531 MB / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.6972, allocations: 0 / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.374e-06/0.6972, allocations: 0 / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0004348/0.6976, allocations: 0 / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.02082/0.7185, allocations: 6.874 MB / 1.236 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.648e-05/0.7186, allocations: 16.03 kB / 1.236 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006257/0.7248, allocations: 0.9449 MB / 1.237 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0164/0.7413, allocations: 6.112 MB / 1.243 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003677/0.7417, allocations: 267.1 kB / 1.244 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001934/0.7436, allocations: 340 kB / 1.244 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7476/1.491, allocations: 5.729 MB / 1.25 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/1.491, allocations: 14.5 kB / 1.25 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007089/1.492, allocations: 144.2 kB / 1.25 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001978/1.492, allocations: 116.4 kB / 1.25 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01431/1.507, allocations: 5.577 MB / 1.255 GB, free: 170.1 MB / 0.9981 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.04985/1.557, allocations: 24.19 MB / 1.279 GB, free: 155.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007883/1.565, allocations: 2.771 MB / 1.282 GB, free: 154.5 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003819/1.568, allocations: 1.908 MB / 1.283 GB, free: 153.8 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0177/1.586, allocations: 7.161 MB / 1.29 GB, free: 149.1 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004568/1.591, allocations: 1.914 MB / 1.292 GB, free: 148 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005168/1.596, allocations: 0.7222 MB / 1.293 GB, free: 147.6 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=154): time 2.026e-05/1.596, allocations: 1.219 kB / 1.293 GB, free: 147.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=154): time 0.03181/1.628, allocations: 8.038 MB / 1.301 GB, free: 143.3 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/1.628, allocations: 71.11 kB / 1.301 GB, free: 143.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01264/1.641, allocations: 5.58 MB / 1.306 GB, free: 140.4 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0009921/1.642, allocations: 69.39 kB / 1.306 GB, free: 140.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00312/1.645, allocations: 2.602 MB / 1.309 GB, free: 138.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001653/1.646, allocations: 0.5571 MB / 1.31 GB, free: 137.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001668/1.648, allocations: 0.7693 MB / 1.31 GB, free: 137.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.409e-05/1.648, allocations: 305.1 kB / 1.311 GB, free: 136.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004008/1.652, allocations: 1.901 MB / 1.312 GB, free: 135.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005667/1.658, allocations: 3.163 MB / 1.316 GB, free: 133.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009829/1.668, allocations: 5.028 MB / 1.32 GB, free: 129.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.448e-05/1.668, allocations: 15.25 kB / 1.32 GB, free: 129.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01983/1.688, allocations: 6.794 MB / 1.327 GB, free: 124.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/1.688, allocations: 49.69 kB / 1.327 GB, free: 124.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-05/1.688, allocations: 36 kB / 1.327 GB, free: 124.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08961/1.778, allocations: 13.55 MB / 1.34 GB, free: 110.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003113/1.781, allocations: 0.702 MB / 1.341 GB, free: 109.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009596/1.79, allocations: 5.493 MB / 1.346 GB, free: 104.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006119/1.797, allocations: 238.3 kB / 1.347 GB, free: 104.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008937/1.797, allocations: 199.8 kB / 1.347 GB, free: 103.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006518/1.804, allocations: 3.269 MB / 1.35 GB, free: 100.6 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003661/1.808, allocations: 3.113 MB / 1.353 GB, free: 96.96 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0061/1.814, allocations: 4.929 MB / 1.358 GB, free: 91.55 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.317e-05/1.814, allocations: 8 kB / 1.358 GB, free: 91.54 MB / 0.9981 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01146/1.825, allocations: 6.525 MB / 1.364 GB, free: 84.99 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.75e-05/1.825, allocations: 53.75 kB / 1.364 GB, free: 84.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.206e-05/1.825, allocations: 36 kB / 1.364 GB, free: 84.89 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07434/1.9, allocations: 13.29 MB / 1.377 GB, free: 71.64 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003101/1.903, allocations: 0.699 MB / 1.378 GB, free: 70.94 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01253/1.915, allocations: 8.92 MB / 1.387 GB, free: 61.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005513/1.921, allocations: 245.6 kB / 1.387 GB, free: 61.48 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007285/1.922, allocations: 199.8 kB / 1.387 GB, free: 61.29 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (317): * Single equations (assignments): 311 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(11,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001328/1.923, allocations: 387.1 kB / 1.388 GB, free: 60.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002143/1.925, allocations: 0.49 MB / 1.388 GB, free: 60.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008902/1.934, allocations: 4.588 MB / 1.393 GB, free: 55.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.228e-05/1.934, allocations: 20 kB / 1.393 GB, free: 55.79 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/1.934, allocations: 0 / 1.393 GB, free: 55.79 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009916/1.944, allocations: 5.667 MB / 1.398 GB, free: 49.86 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02954/1.974, allocations: 10.93 MB / 1.409 GB, free: 38.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/1.974, allocations: 0 / 1.409 GB, free: 38.88 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00217/1.976, allocations: 371.6 kB / 1.409 GB, free: 38.51 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06784/2.044, allocations: 11.72 MB / 1.421 GB, free: 26.79 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006287/2.044, allocations: 43.97 kB / 1.421 GB, free: 26.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005778/2.05, allocations: 3.552 MB / 1.424 GB, free: 23.12 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/2.05, allocations: 0 / 1.424 GB, free: 23.12 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02065/2.071, allocations: 8.118 MB / 1.432 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002946/2.074, allocations: 0.9788 MB / 1.433 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001621/2.076, allocations: 36.17 kB / 1.433 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004219/2.08, allocations: 155.8 kB / 1.433 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004085/2.08, allocations: 109.8 kB / 1.433 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000347/2.081, allocations: 83.92 kB / 1.433 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.007203/2.088, allocations: 3.812 MB / 1.437 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.91e-07/2.088, allocations: 3.938 kB / 1.437 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01023/2.098, allocations: 2.799 MB / 1.44 GB, free: 7.035 MB / 0.9981 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.s[1],val.filter.s[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 (134): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(11,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001976/2.1, allocations: 0.6578 MB / 1.44 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02161/2.122, allocations: 8.967 MB / 1.449 GB, free: 13.43 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/2.122, allocations: 0 / 1.449 GB, free: 13.43 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.006476/2.128, allocations: 2.307 MB / 1.451 GB, free: 11.13 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0175/2.146, allocations: 2.923 MB / 1.454 GB, free: 8.301 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02653/2.172, allocations: 10.87 MB / 1.465 GB, free: 13.41 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005614/2.178, allocations: 3.423 MB / 1.468 GB, free: 9.949 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.007379/2.185, allocations: 1.766 MB / 1.47 GB, free: 8.176 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001462/2.187, allocations: 387.2 kB / 1.47 GB, free: 7.797 MB / 1.029 GB Notification: Performance of SimCode: time 1.473e-06/2.187, allocations: 0 / 1.47 GB, free: 7.797 MB / 1.029 GB Notification: Performance of Templates: time 0.2181/2.405, allocations: 122.7 MB / 1.59 GB, free: 14.17 MB / 1.154 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)