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.5/1.5, allocations: 251.5 MB / 267.4 MB, free: 11.07 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.001083/0.001083, allocations: 180.2 kB / 326.5 MB, free: 2.695 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.588/1.588, allocations: 205 MB / 0.5766 GB, free: 21.02 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.0008176/0.0008175, allocations: 76 kB / 0.6803 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000301/0.000301, allocations: 13.09 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1703, allocations: 105.4 MB / 0.8967 GB, free: 68.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06119/0.2316, allocations: 79.98 MB / 0.9748 GB, free: 3.922 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.03154/0.2631, allocations: 22.78 MB / 0.9971 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00359/0.2668, allocations: 95.31 kB / 0.9972 GB, free: 13 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.003522/0.2703, allocations: 1.022 MB / 0.9982 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.008132/0.2785, allocations: 2.561 MB / 1.001 GB, free: 9.406 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.009188/0.2877, allocations: 3.236 MB / 1.004 GB, free: 6.191 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.02119/0.3089, allocations: 20.71 MB / 1.024 GB, free: 1.43 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00886/0.3178, allocations: 5.975 MB / 1.03 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009331/0.3271, allocations: 4.746 MB / 1.035 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008143/0.3353, allocations: 4.859 MB / 1.039 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.001948/0.3373, allocations: 260 kB / 1.04 GB, free: 1.461 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005846/0.3432, allocations: 1.627 MB / 1.041 GB, free: 15.83 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.002692/0.3459, allocations: 1.28 MB / 1.042 GB, free: 14.55 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.00632/0.3523, allocations: 2.88 MB / 1.045 GB, free: 11.65 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.009626/0.3619, allocations: 6.925 MB / 1.052 GB, free: 4.711 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.362, allocations: 0 / 1.052 GB, free: 4.711 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.976e-06/0.362, allocations: 0 / 1.052 GB, free: 4.711 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0003177/0.3623, allocations: 0 / 1.052 GB, free: 4.711 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.3868/0.7491, allocations: 5.348 MB / 1.057 GB, free: 149.3 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.7491, allocations: 10.31 kB / 1.057 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004896/0.7541, allocations: 0.8494 MB / 1.058 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01214/0.7662, allocations: 5.184 MB / 1.063 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003265/0.7666, allocations: 258.2 kB / 1.063 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001283/0.7679, allocations: 348.5 kB / 1.064 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01461/0.7825, allocations: 5.761 MB / 1.069 GB, free: 147.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.7827, allocations: 8.094 kB / 1.069 GB, free: 147.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000681/0.7834, allocations: 152.8 kB / 1.069 GB, free: 147.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/0.7835, allocations: 83.12 kB / 1.069 GB, free: 147.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01058/0.7941, allocations: 5.586 MB / 1.075 GB, free: 145.4 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.03017/0.8243, allocations: 24 MB / 1.098 GB, free: 126.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004228/0.8285, allocations: 2.808 MB / 1.101 GB, free: 123.4 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00261/0.8312, allocations: 1.921 MB / 1.103 GB, free: 121.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.8427, allocations: 7.134 MB / 1.11 GB, free: 114.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002608/0.8453, allocations: 1.957 MB / 1.112 GB, free: 112.1 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004209/0.8495, allocations: 1.251 MB / 1.113 GB, free: 110.9 MB / 0.698 GB Notification: Performance of pre-optimization done (n=155): time 1.403e-05/0.8496, allocations: 4 kB / 1.113 GB, free: 110.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=155): time 0.01888/0.8685, allocations: 7.669 MB / 1.121 GB, free: 103.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.8686, allocations: 153.7 kB / 1.121 GB, free: 103 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00567/0.8743, allocations: 4.891 MB / 1.126 GB, free: 98.14 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005796/0.8749, allocations: 69.7 kB / 1.126 GB, free: 98.07 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001624/0.8765, allocations: 2.435 MB / 1.128 GB, free: 95.61 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007169/0.8772, allocations: 0.5419 MB / 1.128 GB, free: 95.07 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/0.8775, allocations: 231.1 kB / 1.129 GB, free: 94.84 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.427e-05/0.8776, allocations: 305.1 kB / 1.129 GB, free: 94.54 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002339/0.8799, allocations: 1.707 MB / 1.131 GB, free: 92.83 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002788/0.8827, allocations: 2.94 MB / 1.134 GB, free: 89.33 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005145/0.8879, allocations: 4.652 MB / 1.138 GB, free: 84.21 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.736e-05/0.888, allocations: 8 kB / 1.138 GB, free: 84.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.009836/0.8978, allocations: 6.191 MB / 1.144 GB, free: 77.99 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004639/0.8983, allocations: 1.096 MB / 1.145 GB, free: 76.43 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.657e-05/0.8984, allocations: 32 kB / 1.145 GB, free: 76.39 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06571/0.9641, allocations: 11.92 MB / 1.157 GB, free: 64.51 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/0.9669, allocations: 0.6591 MB / 1.158 GB, free: 63.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00684/0.9738, allocations: 5.064 MB / 1.162 GB, free: 58.71 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00519/0.979, allocations: 339.7 kB / 1.163 GB, free: 58.38 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006584/0.9797, allocations: 167.9 kB / 1.163 GB, free: 58.22 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.9798, allocations: 4 kB / 1.163 GB, free: 58.21 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008955/0.9887, allocations: 5.407 MB / 1.168 GB, free: 52.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.405e-05/0.9889, allocations: 36 kB / 1.168 GB, free: 52.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06052/1.049, allocations: 11.67 MB / 1.18 GB, free: 41.11 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002725/1.052, allocations: 0.6474 MB / 1.18 GB, free: 40.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009758/1.062, allocations: 8.073 MB / 1.188 GB, free: 32.11 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004911/1.067, allocations: 319.8 kB / 1.188 GB, free: 31.79 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006533/1.068, allocations: 163.9 kB / 1.189 GB, free: 31.63 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 (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 (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.003252/1.071, allocations: 1.551 MB / 1.19 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001732/1.073, allocations: 462.3 kB / 1.191 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00865/1.081, allocations: 4.877 MB / 1.195 GB, free: 24.73 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/1.081, allocations: 16 kB / 1.195 GB, free: 24.71 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.081, allocations: 0 / 1.195 GB, free: 24.71 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01638/1.098, allocations: 7.016 MB / 1.202 GB, free: 17.43 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.03032/1.128, allocations: 13.23 MB / 1.215 GB, free: 4.133 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-05/1.128, allocations: 0 / 1.215 GB, free: 4.133 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002219/1.13, allocations: 375.5 kB / 1.216 GB, free: 3.766 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06243/1.193, allocations: 11.9 MB / 1.227 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005347/1.193, allocations: 43.97 kB / 1.227 GB, free: 7.863 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006974/1.2, allocations: 4.382 MB / 1.231 GB, free: 3.406 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.2, allocations: 192 / 1.231 GB, free: 3.406 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02597/1.226, allocations: 9.759 MB / 1.241 GB, free: 9.605 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003546/1.23, allocations: 0.9913 MB / 1.242 GB, free: 8.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001625/1.232, allocations: 32 kB / 1.242 GB, free: 8.559 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004295/1.236, allocations: 279.2 kB / 1.242 GB, free: 8.285 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004978/1.237, allocations: 105.1 kB / 1.242 GB, free: 8.184 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004643/1.237, allocations: 79.92 kB / 1.242 GB, free: 8.105 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.007342/1.244, allocations: 3.349 MB / 1.246 GB, free: 4.773 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.284e-06/1.244, allocations: 0 / 1.246 GB, free: 4.773 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.01135/1.256, allocations: 2.719 MB / 1.248 GB, free: 2.086 MB / 0.7292 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.002024/1.258, allocations: 0.5436 MB / 1.249 GB, free: 1.602 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.01758/1.275, allocations: 7.633 MB / 1.256 GB, free: 9.93 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/1.276, allocations: 4.891 kB / 1.256 GB, free: 9.922 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.00591/1.281, allocations: 2.519 MB / 1.259 GB, free: 7.406 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01587/1.297, allocations: 2.781 MB / 1.262 GB, free: 4.656 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02041/1.318, allocations: 11.86 MB / 1.273 GB, free: 8.77 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003609/1.321, allocations: 3.193 MB / 1.276 GB, free: 5.547 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001783/1.323, allocations: 375.2 kB / 1.277 GB, free: 5.18 MB / 0.7605 GB Notification: Performance of SimCode: time 5.41e-07/1.323, allocations: 0 / 1.277 GB, free: 5.18 MB / 0.7605 GB Notification: Performance of Templates: time 0.5005/1.824, allocations: 163.3 MB / 1.436 GB, free: 253.8 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)