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/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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009038/0.0009037, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001132/0.001132, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.611/1.611, allocations: 252 MB / 0.5102 GB, free: 4.871 MB / 414.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.0005167/0.0005168, allocations: 16 kB / 0.6243 GB, free: 1.16 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5674/0.5679, allocations: 106.3 MB / 0.7281 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07471/0.6426, allocations: 74.43 MB / 0.8008 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0352/0.6779, allocations: 20.96 MB / 0.8213 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00455/0.6825, allocations: 95.31 kB / 0.8213 GB, free: 11.75 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.003582/0.6861, allocations: 0.8114 MB / 0.8221 GB, free: 10.93 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.008282/0.6944, allocations: 2.272 MB / 0.8244 GB, free: 8.652 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.009837/0.7043, allocations: 2.828 MB / 0.8271 GB, free: 5.848 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.02031/0.7246, allocations: 17.43 MB / 0.8441 GB, free: 4.375 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009279/0.7339, allocations: 5.267 MB / 0.8493 GB, free: 15.05 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01228/0.7462, allocations: 4.63 MB / 0.8538 GB, free: 10.4 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01076/0.757, allocations: 4.575 MB / 0.8583 GB, free: 5.805 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.002145/0.7592, allocations: 264 kB / 0.8585 GB, free: 5.547 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006761/0.766, allocations: 1.322 MB / 0.8598 GB, free: 4.223 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.00336/0.7694, allocations: 1.222 MB / 0.861 GB, free: 2.996 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.003541/0.773, allocations: 1.104 MB / 0.8621 GB, free: 1.883 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.01125/0.7842, allocations: 6.886 MB / 0.8688 GB, free: 10.98 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.7843, allocations: 4 kB / 0.8688 GB, free: 10.98 MB / 0.6856 GB Notification: Performance of FrontEnd: time 3.617e-06/0.7843, allocations: 0 / 0.8688 GB, free: 10.98 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0004216/0.7847, allocations: 4 kB / 0.8688 GB, free: 10.97 MB / 0.6856 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.01665/0.8014, allocations: 5.412 MB / 0.8741 GB, free: 5.473 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.8015, allocations: 8.031 kB / 0.8741 GB, free: 5.465 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005108/0.8066, allocations: 0.8401 MB / 0.8749 GB, free: 4.617 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01468/0.8213, allocations: 5.031 MB / 0.8798 GB, free: 15.51 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000383/0.8217, allocations: 263.1 kB / 0.8801 GB, free: 15.25 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001958/0.8237, allocations: 336 kB / 0.8804 GB, free: 14.92 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0127/0.8364, allocations: 5.735 MB / 0.886 GB, free: 8.941 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.367e-05/0.8365, allocations: 7.938 kB / 0.886 GB, free: 8.934 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000522/0.8371, allocations: 144 kB / 0.8862 GB, free: 8.793 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.048e-05/0.8371, allocations: 88 kB / 0.8862 GB, free: 8.707 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01113/0.8483, allocations: 5.558 MB / 0.8917 GB, free: 3.137 MB / 0.7012 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.5561/1.404, allocations: 23.99 MB / 0.9151 GB, free: 159.2 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006186/1.411, allocations: 2.785 MB / 0.9178 GB, free: 159 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003851/1.415, allocations: 1.928 MB / 0.9197 GB, free: 158.3 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.016/1.431, allocations: 7.15 MB / 0.9267 GB, free: 154.5 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003314/1.434, allocations: 1.941 MB / 0.9286 GB, free: 153.8 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004851/1.439, allocations: 1.259 MB / 0.9298 GB, free: 153.4 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=155): time 1.254e-05/1.439, allocations: 0 / 0.9298 GB, free: 153.4 MB / 0.7169 GB Notification: Performance of matching and sorting (n=155): time 0.01991/1.459, allocations: 7.625 MB / 0.9373 GB, free: 149.5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/1.459, allocations: 145.6 kB / 0.9374 GB, free: 149.3 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007589/1.467, allocations: 4.843 MB / 0.9421 GB, free: 146.9 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0006415/1.467, allocations: 70.55 kB / 0.9422 GB, free: 146.8 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.002038/1.469, allocations: 2.44 MB / 0.9446 GB, free: 144.8 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008492/1.47, allocations: 0.5558 MB / 0.9451 GB, free: 144.3 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/1.47, allocations: 53.92 kB / 0.9452 GB, free: 144.3 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001475/1.47, allocations: 422 kB / 0.9456 GB, free: 143.9 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/1.473, allocations: 1.657 MB / 0.9472 GB, free: 142.4 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002681/1.476, allocations: 2.892 MB / 0.95 GB, free: 139 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00264/1.478, allocations: 2.107 MB / 0.9521 GB, free: 137 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/1.478, allocations: 12 kB / 0.9521 GB, free: 137 MB / 0.7169 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.009588/1.488, allocations: 6.015 MB / 0.958 GB, free: 130.9 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007605/1.489, allocations: 1.108 MB / 0.959 GB, free: 129.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.668e-05/1.489, allocations: 32 kB / 0.9591 GB, free: 129.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05714/1.546, allocations: 11.87 MB / 0.9707 GB, free: 117.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003046/1.549, allocations: 0.6695 MB / 0.9713 GB, free: 116.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007289/1.556, allocations: 5.038 MB / 0.9762 GB, free: 111.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005646/1.562, allocations: 347.7 kB / 0.9766 GB, free: 111.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008233/1.563, allocations: 163.9 kB / 0.9767 GB, free: 111.2 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/1.563, allocations: 4 kB / 0.9767 GB, free: 111.2 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01009/1.573, allocations: 5.376 MB / 0.982 GB, free: 105.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/1.573, allocations: 35.98 kB / 0.982 GB, free: 105.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05649/1.63, allocations: 11.67 MB / 0.9934 GB, free: 94.15 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002989/1.633, allocations: 0.6551 MB / 0.994 GB, free: 93.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/1.643, allocations: 8.071 MB / 1.002 GB, free: 85.14 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005471/1.649, allocations: 327.8 kB / 1.002 GB, free: 84.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008515/1.65, allocations: 155.9 kB / 1.002 GB, free: 84.66 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.004346/1.654, allocations: 1.551 MB / 1.004 GB, free: 83.1 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001889/1.656, allocations: 458.3 kB / 1.004 GB, free: 82.65 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008062/1.664, allocations: 4.872 MB / 1.009 GB, free: 77.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/1.664, allocations: 16 kB / 1.009 GB, free: 77.75 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/1.664, allocations: 4 kB / 1.009 GB, free: 77.75 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01542/1.68, allocations: 6.995 MB / 1.016 GB, free: 70.49 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 postOpt removeSimpleEquations (simulation): time 0.03105/1.711, allocations: 13.22 MB / 1.029 GB, free: 57.19 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.32e-05/1.711, allocations: 0 / 1.029 GB, free: 57.19 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002289/1.713, allocations: 371.6 kB / 1.029 GB, free: 56.83 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05536/1.768, allocations: 11.9 MB / 1.041 GB, free: 44.99 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006687/1.769, allocations: 47.97 kB / 1.041 GB, free: 44.94 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005736/1.775, allocations: 4.38 MB / 1.045 GB, free: 40.49 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/1.775, allocations: 4 kB / 1.045 GB, free: 40.48 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02155/1.796, allocations: 9.727 MB / 1.055 GB, free: 30.72 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003223/1.8, allocations: 1.069 MB / 1.056 GB, free: 29.62 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001384/1.801, allocations: 39.88 kB / 1.056 GB, free: 29.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003727/1.805, allocations: 283.3 kB / 1.056 GB, free: 29.31 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/1.805, allocations: 105.1 kB / 1.056 GB, free: 29.21 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002568/1.805, allocations: 83.92 kB / 1.056 GB, free: 29.12 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.005032/1.811, allocations: 3.306 MB / 1.059 GB, free: 25.84 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.11e-07/1.811, allocations: 0 / 1.059 GB, free: 25.84 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.009806/1.82, allocations: 2.716 MB / 1.062 GB, free: 23.15 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001407/1.822, allocations: 0.5258 MB / 1.063 GB, free: 22.7 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0137/1.836, allocations: 7.554 MB / 1.07 GB, free: 15.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.836, allocations: 0.8906 kB / 1.07 GB, free: 15.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.004636/1.84, allocations: 2.531 MB / 1.072 GB, free: 12.56 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01188/1.852, allocations: 2.777 MB / 1.075 GB, free: 9.809 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01513/1.867, allocations: 11.44 MB / 1.086 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002873/1.87, allocations: 3.213 MB / 1.089 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.006422/1.877, allocations: 1.702 MB / 1.091 GB, free: 9.387 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00159/1.878, allocations: 351.3 kB / 1.091 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of SimCode: time 1.713e-06/1.878, allocations: 0 / 1.091 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of Templates: time 0.1691/2.047, allocations: 107.2 MB / 1.196 GB, free: 14.9 MB / 0.8419 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: