Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.36/1.36, allocations: 252 MB / 268 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 174.5 kB / 327.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.4 MB / 0.5786 GB, free: 20.19 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008646/0.0008644, allocations: 90.36 kB / 0.6832 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003428, allocations: 8.656 kB / 0.7976 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2174, allocations: 106.3 MB / 0.9014 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06182/0.2793, allocations: 78.82 MB / 0.9784 GB, free: 492 kB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.03325/0.3126, allocations: 22.51 MB / 1 GB, free: 9.93 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004519/0.3172, allocations: 91.31 kB / 1 GB, free: 9.84 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.004056/0.3213, allocations: 1.01 MB / 1.001 GB, free: 8.824 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.008657/0.3299, allocations: 2.565 MB / 1.004 GB, free: 6.25 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.009254/0.3392, allocations: 3.248 MB / 1.007 GB, free: 3.027 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.02058/0.3598, allocations: 20.71 MB / 1.027 GB, free: 14.27 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008648/0.3685, allocations: 5.996 MB / 1.033 GB, free: 8.184 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01036/0.3789, allocations: 4.754 MB / 1.038 GB, free: 3.41 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008967/0.3879, allocations: 4.855 MB / 1.043 GB, free: 14.54 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.001872/0.3898, allocations: 264 kB / 1.043 GB, free: 14.28 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006196/0.396, allocations: 1.626 MB / 1.044 GB, free: 12.65 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.00272/0.3988, allocations: 1.272 MB / 1.046 GB, free: 11.37 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.005846/0.4047, allocations: 2.905 MB / 1.049 GB, free: 8.445 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.008398/0.4131, allocations: 6.929 MB / 1.055 GB, free: 1.5 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.4131, allocations: 0 / 1.055 GB, free: 1.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.304e-06/0.4131, allocations: 0 / 1.055 GB, free: 1.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002439/0.4134, allocations: 0 / 1.055 GB, free: 1.5 MB / 0.698 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.3386/0.752, allocations: 5.35 MB / 1.061 GB, free: 146.1 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.7521, allocations: 10.78 kB / 1.061 GB, free: 146.1 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0042/0.7563, allocations: 0.8432 MB / 1.061 GB, free: 145.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01044/0.7668, allocations: 5.188 MB / 1.066 GB, free: 144.8 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003307/0.7671, allocations: 260.5 kB / 1.067 GB, free: 144.8 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001192/0.7683, allocations: 342.3 kB / 1.067 GB, free: 144.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.7812, allocations: 5.769 MB / 1.073 GB, free: 144 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.043e-05/0.7814, allocations: 8.656 kB / 1.073 GB, free: 144 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000606/0.782, allocations: 152.2 kB / 1.073 GB, free: 144 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001039/0.7821, allocations: 83.44 kB / 1.073 GB, free: 144 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.793, allocations: 5.578 MB / 1.078 GB, free: 142.8 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.03339/0.8264, allocations: 24.01 MB / 1.102 GB, free: 123 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004661/0.8311, allocations: 2.805 MB / 1.104 GB, free: 120.2 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002751/0.8339, allocations: 1.919 MB / 1.106 GB, free: 118.3 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/0.8453, allocations: 7.145 MB / 1.113 GB, free: 110.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002582/0.8479, allocations: 1.95 MB / 1.115 GB, free: 109 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004272/0.8522, allocations: 1.25 MB / 1.116 GB, free: 107.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=155): time 1.208e-05/0.8522, allocations: 4 kB / 1.116 GB, free: 107.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=155): time 0.01997/0.8722, allocations: 7.675 MB / 1.124 GB, free: 99.98 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.8723, allocations: 145.8 kB / 1.124 GB, free: 99.81 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006087/0.8784, allocations: 4.887 MB / 1.129 GB, free: 94.94 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0006007/0.879, allocations: 70.41 kB / 1.129 GB, free: 94.86 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001598/0.8807, allocations: 2.439 MB / 1.131 GB, free: 92.41 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007253/0.8814, allocations: 0.5475 MB / 1.132 GB, free: 91.86 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.8816, allocations: 56 kB / 1.132 GB, free: 91.81 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.8817, allocations: 419.3 kB / 1.132 GB, free: 91.39 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/0.8841, allocations: 1.711 MB / 1.134 GB, free: 89.68 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00279/0.8869, allocations: 2.944 MB / 1.137 GB, free: 86.17 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005279/0.8922, allocations: 4.648 MB / 1.141 GB, free: 81.05 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.26e-05/0.8922, allocations: 8 kB / 1.141 GB, free: 81.05 MB / 0.698 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01007/0.9023, allocations: 6.161 MB / 1.147 GB, free: 74.86 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004607/0.9028, allocations: 1.1 MB / 1.148 GB, free: 73.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-05/0.9029, allocations: 39.98 kB / 1.149 GB, free: 73.26 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06671/0.9696, allocations: 11.91 MB / 1.16 GB, free: 61.38 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002787/0.9724, allocations: 0.6591 MB / 1.161 GB, free: 60.72 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00687/0.9793, allocations: 5.054 MB / 1.166 GB, free: 55.59 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004929/0.9843, allocations: 347.8 kB / 1.166 GB, free: 55.25 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006004/0.9849, allocations: 163.9 kB / 1.166 GB, free: 55.09 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.9849, allocations: 8 kB / 1.166 GB, free: 55.09 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007528/0.9925, allocations: 5.388 MB / 1.171 GB, free: 49.68 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.958e-05/0.9926, allocations: 39.98 kB / 1.172 GB, free: 49.64 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06376/1.056, allocations: 11.66 MB / 1.183 GB, free: 38.01 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002668/1.059, allocations: 0.6552 MB / 1.184 GB, free: 37.36 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009864/1.069, allocations: 8.076 MB / 1.191 GB, free: 28.99 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/1.074, allocations: 327.5 kB / 1.192 GB, free: 28.67 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004713/1.074, allocations: 159.9 kB / 1.192 GB, free: 28.52 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 (287): * Single equations (assignments): 280 * Array equations: 2 * 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,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.002529/1.077, allocations: 1.547 MB / 1.193 GB, free: 26.96 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/1.078, allocations: 462.2 kB / 1.194 GB, free: 26.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007046/1.085, allocations: 4.878 MB / 1.199 GB, free: 21.61 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/1.085, allocations: 20 kB / 1.199 GB, free: 21.59 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/1.085, allocations: 0 / 1.199 GB, free: 21.59 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01714/1.102, allocations: 7.015 MB / 1.206 GB, free: 14.32 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 postOpt removeSimpleEquations (simulation): time 0.02947/1.132, allocations: 13.23 MB / 1.218 GB, free: 1.016 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/1.132, allocations: 0 / 1.218 GB, free: 1.016 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/1.134, allocations: 375.5 kB / 1.219 GB, free: 0.6484 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06876/1.203, allocations: 11.89 MB / 1.23 GB, free: 4.797 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005432/1.203, allocations: 47.97 kB / 1.23 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007033/1.21, allocations: 4.372 MB / 1.235 GB, free: 312 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.982e-06/1.21, allocations: 4 kB / 1.235 GB, free: 308 kB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02698/1.237, allocations: 9.763 MB / 1.244 GB, free: 6.496 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003722/1.241, allocations: 1.069 MB / 1.245 GB, free: 5.402 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001465/1.243, allocations: 36.06 kB / 1.245 GB, free: 5.367 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004538/1.247, allocations: 279.2 kB / 1.246 GB, free: 5.094 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005046/1.248, allocations: 105.1 kB / 1.246 GB, free: 4.992 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003466/1.248, allocations: 83.92 kB / 1.246 GB, free: 4.91 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.006277/1.254, allocations: 3.345 MB / 1.249 GB, free: 1.582 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.91e-07/1.255, allocations: 0 / 1.249 GB, free: 1.582 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.01118/1.266, allocations: 2.715 MB / 1.252 GB, free: 14.9 MB / 0.7448 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 (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 {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002068/1.268, allocations: 0.5439 MB / 1.252 GB, free: 14.41 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.01793/1.286, allocations: 7.629 MB / 1.26 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/1.286, allocations: 4.891 kB / 1.26 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.006143/1.292, allocations: 2.522 MB / 1.262 GB, free: 4.219 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01474/1.307, allocations: 2.787 MB / 1.265 GB, free: 1.465 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01968/1.326, allocations: 11.93 MB / 1.277 GB, free: 5.508 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003208/1.33, allocations: 3.193 MB / 1.28 GB, free: 2.285 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001729/1.331, allocations: 371.3 kB / 1.28 GB, free: 1.922 MB / 0.7605 GB Notification: Performance of SimCode: time 6.52e-07/1.332, allocations: 0 / 1.28 GB, free: 1.922 MB / 0.7605 GB Notification: Performance of Templates: time 0.5434/1.875, allocations: 163.3 MB / 1.439 GB, free: 247.7 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)