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.001503/0.001503, allocations: 108 kB / 15.61 MB, free: 152 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.001978/0.001979, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.581/1.581, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.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.707/1.707, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.00141/0.00141, allocations: 65.72 kB / 0.6715 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2819, allocations: 114.5 MB / 0.7833 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07731/0.3592, allocations: 80.86 MB / 0.8623 GB, free: 12.37 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03777/0.3971, allocations: 22.3 MB / 0.8841 GB, free: 6.027 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00553/0.4026, allocations: 107.3 kB / 0.8842 GB, free: 5.922 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.004172/0.4069, allocations: 1.204 MB / 0.8854 GB, free: 4.711 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.01138/0.4183, allocations: 2.754 MB / 0.888 GB, free: 1.945 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.0103/0.4286, allocations: 3.802 MB / 0.8918 GB, free: 14.17 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.6036/1.032, allocations: 15.44 MB / 0.9068 GB, free: 19.71 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01217/1.045, allocations: 7.211 MB / 0.9139 GB, free: 18.81 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01511/1.06, allocations: 5.821 MB / 0.9196 GB, free: 18.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01325/1.073, allocations: 5.038 MB / 0.9245 GB, free: 17.74 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.004682/1.078, allocations: 0.5376 MB / 0.925 GB, free: 17.74 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01174/1.089, allocations: 1.927 MB / 0.9269 GB, free: 17.74 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.00601/1.095, allocations: 1.62 MB / 0.9285 GB, free: 17.52 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.01293/1.108, allocations: 3.282 MB / 0.9317 GB, free: 16.68 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01989/1.128, allocations: 9.055 MB / 0.9405 GB, free: 15.61 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/1.128, allocations: 1.406 kB / 0.9405 GB, free: 15.61 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.645e-06/1.128, allocations: 0 / 0.9405 GB, free: 15.61 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0004197/1.129, allocations: 0 / 0.9405 GB, free: 15.61 MB / 0.7169 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.02593/1.155, allocations: 6.483 MB / 0.9469 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/1.155, allocations: 7.625 kB / 0.9469 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00697/1.162, allocations: 0.8197 MB / 0.9477 GB, free: 12.64 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01374/1.176, allocations: 5.024 MB / 0.9526 GB, free: 11.69 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003486/1.176, allocations: 261.1 kB / 0.9528 GB, free: 11.68 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002244/1.178, allocations: 344.3 kB / 0.9531 GB, free: 11.68 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/1.195, allocations: 5.727 MB / 0.9587 GB, free: 10.94 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002035/1.195, allocations: 13.58 kB / 0.9588 GB, free: 10.94 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00239/1.198, allocations: 146.3 kB / 0.9589 GB, free: 10.94 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001092/1.198, allocations: 82.94 kB / 0.959 GB, free: 10.94 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01441/1.212, allocations: 5.508 MB / 0.9643 GB, free: 10.57 MB / 0.7169 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.04901/1.261, allocations: 23.78 MB / 0.9876 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005671/1.267, allocations: 2.743 MB / 0.9903 GB, free: 8.594 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00329/1.271, allocations: 1.888 MB / 0.9921 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01616/1.287, allocations: 7.069 MB / 0.999 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003278/1.29, allocations: 1.915 MB / 1.001 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004768/1.295, allocations: 0.7075 MB / 1.002 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=154): time 1.262e-05/1.295, allocations: 0 / 1.002 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of matching and sorting (n=154): time 0.02699/1.322, allocations: 8.04 MB / 1.009 GB, free: 6.926 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/1.322, allocations: 145.8 kB / 1.01 GB, free: 6.754 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009449/1.332, allocations: 4.958 MB / 1.014 GB, free: 1.809 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.001131/1.333, allocations: 73.45 kB / 1.014 GB, free: 1.734 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.002903/1.336, allocations: 2.443 MB / 1.017 GB, free: 15.28 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001665/1.337, allocations: 0.5504 MB / 1.017 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001279/1.339, allocations: 0.6688 MB / 1.018 GB, free: 14.06 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001199/1.339, allocations: 309.1 kB / 1.018 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003083/1.342, allocations: 1.731 MB / 1.02 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003999/1.346, allocations: 2.949 MB / 1.023 GB, free: 8.527 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007244/1.353, allocations: 4.703 MB / 1.027 GB, free: 3.492 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.582e-05/1.353, allocations: 8 kB / 1.028 GB, free: 3.484 MB / 0.7637 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01412/1.367, allocations: 6.34 MB / 1.034 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.714e-05/1.367, allocations: 52.97 kB / 1.034 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.839e-05/1.368, allocations: 32 kB / 1.034 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0792/1.447, allocations: 13.55 MB / 1.047 GB, free: 15.79 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003263/1.45, allocations: 0.6496 MB / 1.048 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/1.461, allocations: 5.483 MB / 1.053 GB, free: 9.629 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007051/1.468, allocations: 212.3 kB / 1.053 GB, free: 9.422 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001306/1.469, allocations: 195.8 kB / 1.053 GB, free: 9.23 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007905/1.477, allocations: 2.971 MB / 1.056 GB, free: 6.254 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004205/1.481, allocations: 2.886 MB / 1.059 GB, free: 2.816 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007156/1.488, allocations: 4.564 MB / 1.064 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.024e-05/1.488, allocations: 12 kB / 1.064 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=340) (initialization_lambda0): time 0.01374/1.502, allocations: 6.027 MB / 1.069 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.794e-05/1.502, allocations: 49.64 kB / 1.07 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.997e-05/1.502, allocations: 36.16 kB / 1.07 GB, free: 7.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07736/1.58, allocations: 13.3 MB / 1.083 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0033/1.583, allocations: 0.6353 MB / 1.083 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01416/1.597, allocations: 8.913 MB / 1.092 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006302/1.604, allocations: 224.9 kB / 1.092 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009284/1.605, allocations: 198.8 kB / 1.092 GB, free: 0.5547 MB / 0.8262 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.001326/1.606, allocations: 370.5 kB / 1.093 GB, free: 232 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002336/1.608, allocations: 466.3 kB / 1.093 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009277/1.618, allocations: 4.54 MB / 1.097 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/1.618, allocations: 19.98 kB / 1.098 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/1.618, allocations: 0 / 1.098 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01019/1.628, allocations: 5.548 MB / 1.103 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02107/1.649, allocations: 9.773 MB / 1.112 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/1.649, allocations: 0 / 1.112 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002107/1.651, allocations: 370.7 kB / 1.113 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06924/1.72, allocations: 11.7 MB / 1.124 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006129/1.721, allocations: 55.89 kB / 1.124 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006174/1.727, allocations: 3.522 MB / 1.128 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.727, allocations: 0 / 1.128 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02588/1.753, allocations: 8.516 MB / 1.136 GB, free: 3.562 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004069/1.757, allocations: 0.9209 MB / 1.137 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001974/1.759, allocations: 28 kB / 1.137 GB, free: 2.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004255/1.764, allocations: 135.7 kB / 1.137 GB, free: 2.457 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000404/1.764, allocations: 113.8 kB / 1.137 GB, free: 2.348 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003372/1.764, allocations: 84.03 kB / 1.137 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.00844/1.773, allocations: 3.407 MB / 1.141 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of sort global known variables: time 3.91e-07/1.773, allocations: 0 / 1.141 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.01436/1.787, allocations: 2.669 MB / 1.143 GB, free: 12.2 MB / 0.8887 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.002708/1.79, allocations: 0.5748 MB / 1.144 GB, free: 11.68 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.02402/1.814, allocations: 8.502 MB / 1.152 GB, free: 3.328 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.548e-05/1.814, allocations: 0.6562 kB / 1.152 GB, free: 3.328 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.006156/1.82, allocations: 2.263 MB / 1.154 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01525/1.835, allocations: 2.745 MB / 1.157 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02102/1.857, allocations: 10.02 MB / 1.167 GB, free: 4.398 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003181/1.86, allocations: 3.225 MB / 1.17 GB, free: 1.145 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.007053/1.867, allocations: 1.672 MB / 1.172 GB, free: 15.46 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001545/1.868, allocations: 350.5 kB / 1.172 GB, free: 15.13 MB / 0.92 GB Notification: Performance of SimCode: time 1.072e-06/1.868, allocations: 0 / 1.172 GB, free: 15.13 MB / 0.92 GB Notification: Performance of Templates: time 0.6889/2.557, allocations: 116.4 MB / 1.286 GB, free: 399.2 MB / 1.014 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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)