Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001161/0.001161, allocations: 104.2 kB / 16.35 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 193 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.818/1.818, allocations: 292.3 MB / 0.5496 GB, free: 17.61 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 71.56 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2356, allocations: 114.6 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.4348/0.6704, allocations: 80.85 MB / 0.8637 GB, free: 10.89 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.04277/0.7133, allocations: 22.28 MB / 0.8855 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005704/0.719, allocations: 111.5 kB / 0.8856 GB, free: 10.83 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.004821/0.7239, allocations: 1.195 MB / 0.8867 GB, free: 9.844 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.01192/0.7359, allocations: 2.761 MB / 0.8894 GB, free: 7.629 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.01343/0.7493, allocations: 3.815 MB / 0.8932 GB, free: 5.055 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.02545/0.7748, allocations: 15.47 MB / 0.9083 GB, free: 11.94 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0125/0.7873, allocations: 7.208 MB / 0.9153 GB, free: 4.664 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01532/0.8027, allocations: 5.857 MB / 0.921 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01051/0.8132, allocations: 5.047 MB / 0.926 GB, free: 9.773 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.002605/0.8159, allocations: 0.5391 MB / 0.9265 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007697/0.8236, allocations: 1.935 MB / 0.9284 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.003838/0.8275, allocations: 1.612 MB / 0.9299 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.008732/0.8362, allocations: 3.282 MB / 0.9332 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0169/0.8532, allocations: 9.157 MB / 0.9421 GB, free: 9.191 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.8532, allocations: 7.938 kB / 0.9421 GB, free: 9.184 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.673e-06/0.8532, allocations: 0 / 0.9421 GB, free: 9.184 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0003656/0.8536, allocations: 0 / 0.9421 GB, free: 9.184 MB / 0.7325 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.01985/0.8735, allocations: 6.469 MB / 0.9484 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.8735, allocations: 8.75 kB / 0.9484 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005186/0.8787, allocations: 0.8206 MB / 0.9492 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01274/0.8915, allocations: 5.019 MB / 0.9541 GB, free: 12.69 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002674/0.8918, allocations: 259.1 kB / 0.9544 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/0.8931, allocations: 344 kB / 0.9547 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01237/0.9055, allocations: 5.733 MB / 0.9603 GB, free: 6.102 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.785e-05/0.9056, allocations: 11.88 kB / 0.9603 GB, free: 6.09 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005643/0.9062, allocations: 151.9 kB / 0.9605 GB, free: 5.941 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.375e-05/0.9063, allocations: 95.92 kB / 0.9606 GB, free: 5.848 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01069/0.9169, allocations: 5.511 MB / 0.9659 GB, free: 332 kB / 0.7481 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.04231/0.9593, allocations: 23.65 MB / 0.989 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005326/0.9647, allocations: 2.736 MB / 0.9917 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003332/0.968, allocations: 1.894 MB / 0.9936 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01433/0.9824, allocations: 7.077 MB / 1 GB, free: 11.57 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003238/0.9857, allocations: 1.918 MB / 1.002 GB, free: 9.637 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003855/0.9896, allocations: 0.7002 MB / 1.003 GB, free: 8.934 MB / 0.795 GB Notification: Performance of pre-optimization done (n=154): time 1.482e-05/0.9896, allocations: 0 / 1.003 GB, free: 8.934 MB / 0.795 GB Notification: Performance of matching and sorting (n=154): time 0.02568/1.015, allocations: 8.029 MB / 1.011 GB, free: 0.8477 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/1.015, allocations: 145.8 kB / 1.011 GB, free: 0.6758 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008033/1.023, allocations: 4.966 MB / 1.016 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0007667/1.024, allocations: 69.7 kB / 1.016 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.002485/1.027, allocations: 2.443 MB / 1.018 GB, free: 9.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.001067/1.028, allocations: 0.5433 MB / 1.019 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/1.029, allocations: 0.6649 MB / 1.019 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.819e-05/1.029, allocations: 313.1 kB / 1.02 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002827/1.032, allocations: 1.734 MB / 1.021 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003801/1.036, allocations: 2.948 MB / 1.024 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007254/1.043, allocations: 4.696 MB / 1.029 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.803e-05/1.043, allocations: 8 kB / 1.029 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01327/1.056, allocations: 6.349 MB / 1.035 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.384e-05/1.057, allocations: 45.7 kB / 1.035 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-05/1.057, allocations: 39.94 kB / 1.035 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08011/1.137, allocations: 13.54 MB / 1.048 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002984/1.14, allocations: 0.6508 MB / 1.049 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009638/1.149, allocations: 5.481 MB / 1.054 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004444/1.154, allocations: 220.2 kB / 1.055 GB, free: 2.781 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005212/1.154, allocations: 191.8 kB / 1.055 GB, free: 2.594 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005282/1.16, allocations: 2.972 MB / 1.058 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003668/1.163, allocations: 2.874 MB / 1.061 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006526/1.17, allocations: 4.578 MB / 1.065 GB, free: 7.125 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.85e-05/1.17, allocations: 8 kB / 1.065 GB, free: 7.117 MB / 0.8575 GB Notification: Performance of matching and sorting (n=340) (initialization_lambda0): time 0.01164/1.182, allocations: 6.029 MB / 1.071 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.789e-05/1.182, allocations: 45.7 kB / 1.071 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.077e-05/1.182, allocations: 39.94 kB / 1.071 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08149/1.263, allocations: 13.31 MB / 1.084 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002866/1.266, allocations: 0.6396 MB / 1.085 GB, free: 2.992 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/1.28, allocations: 8.907 MB / 1.093 GB, free: 9.77 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004523/1.284, allocations: 216.9 kB / 1.094 GB, free: 9.559 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005863/1.285, allocations: 193.4 kB / 1.094 GB, free: 9.371 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (285): * Single equations (assignments): 278 * 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,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000927/1.286, allocations: 364.7 kB / 1.094 GB, free: 9.008 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001465/1.287, allocations: 462.3 kB / 1.094 GB, free: 8.551 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008223/1.296, allocations: 4.553 MB / 1.099 GB, free: 3.996 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/1.296, allocations: 16 kB / 1.099 GB, free: 3.98 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/1.296, allocations: 4 kB / 1.099 GB, free: 3.977 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00963/1.305, allocations: 5.541 MB / 1.104 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0164/1.322, allocations: 9.778 MB / 1.114 GB, free: 4.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/1.322, allocations: 4 kB / 1.114 GB, free: 4.316 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002169/1.324, allocations: 367.5 kB / 1.114 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07342/1.397, allocations: 11.71 MB / 1.126 GB, free: 8.234 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000441/1.398, allocations: 55.89 kB / 1.126 GB, free: 8.184 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006004/1.404, allocations: 3.513 MB / 1.129 GB, free: 4.594 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.404, allocations: 0 / 1.129 GB, free: 4.594 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4058/1.81, allocations: 8.519 MB / 1.138 GB, free: 294.8 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002806/1.813, allocations: 0.9126 MB / 1.138 GB, free: 294.7 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001815/1.814, allocations: 33.66 kB / 1.138 GB, free: 294.7 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003567/1.818, allocations: 141.7 kB / 1.139 GB, free: 294.7 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004157/1.818, allocations: 107.5 kB / 1.139 GB, free: 294.7 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/1.819, allocations: 92.73 kB / 1.139 GB, free: 294.7 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.005282/1.824, allocations: 3.402 MB / 1.142 GB, free: 294.5 MB / 0.92 GB Notification: Performance of sort global known variables: time 5.11e-07/1.824, allocations: 0 / 1.142 GB, free: 294.5 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.009122/1.833, allocations: 2.67 MB / 1.145 GB, free: 294.5 MB / 0.92 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 (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.001689/1.835, allocations: 0.5668 MB / 1.145 GB, free: 294.4 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.01846/1.853, allocations: 7.504 MB / 1.153 GB, free: 291.8 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/1.853, allocations: 2.984 kB / 1.153 GB, free: 291.8 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.005415/1.859, allocations: 2.259 MB / 1.155 GB, free: 290.9 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01223/1.871, allocations: 2.735 MB / 1.157 GB, free: 290.4 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/1.888, allocations: 9.901 MB / 1.167 GB, free: 286.5 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003829/1.892, allocations: 3.226 MB / 1.17 GB, free: 285.5 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.006766/1.899, allocations: 1.672 MB / 1.172 GB, free: 285.3 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/1.9, allocations: 348.2 kB / 1.172 GB, free: 285.2 MB / 0.92 GB Notification: Performance of SimCode: time 8.92e-07/1.9, allocations: 0 / 1.172 GB, free: 285.2 MB / 0.92 GB Notification: Performance of Templates: time 0.1385/2.038, allocations: 112.3 MB / 1.282 GB, free: 194.5 MB / 0.92 GB make -j1 -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)