Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9613/0.9613, allocations: 141.8 MB / 149.3 MB, free: 9.23 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 175.8 kB / 182.2 MB, free: 9.473 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.5 MB / 436.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009456/0.0009454, allocations: 92.11 kB / 0.5074 GB, free: 10.19 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001801/0.001801, allocations: 277.1 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.494e-05/1.496e-05, allocations: 4 kB / 0.6765 GB, free: 12.85 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4744/0.4745, allocations: 82.78 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9151/1.39, allocations: 377.2 MB / 1.126 GB, free: 3.273 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/1.39, allocations: 83.59 kB / 1.126 GB, free: 3.238 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 6.536/7.926, allocations: 1.467 GB / 2.593 GB, free: 94.57 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.114e-06/7.926, allocations: 0 / 2.593 GB, free: 94.57 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.000953/7.927, allocations: 148 kB / 2.593 GB, free: 94.55 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.01594/7.943, allocations: 4.535 MB / 2.597 GB, free: 92.82 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/7.943, allocations: 10.97 kB / 2.597 GB, free: 92.82 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005577/7.949, allocations: 0.7996 MB / 2.598 GB, free: 92.51 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02195/7.971, allocations: 6.706 MB / 2.605 GB, free: 91.67 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/7.971, allocations: 109.4 kB / 2.605 GB, free: 91.67 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001298/7.972, allocations: 204.7 kB / 2.605 GB, free: 91.67 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008466/7.981, allocations: 4.734 MB / 2.61 GB, free: 91.66 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00818/7.989, allocations: 4.787 MB / 2.614 GB, free: 90.99 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-05/7.989, allocations: 10.41 kB / 2.614 GB, free: 90.99 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004707/7.99, allocations: 13.47 kB / 2.614 GB, free: 90.99 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-05/7.99, allocations: 114 kB / 2.614 GB, free: 90.98 MB / 0.7292 GB Warning: The model contains alias variables with conflicting start and/or 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.03562/8.025, allocations: 22.14 MB / 2.636 GB, free: 81.16 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003343/8.029, allocations: 2.499 MB / 2.639 GB, free: 81.13 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002072/8.031, allocations: 1.751 MB / 2.64 GB, free: 81.11 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01368/8.045, allocations: 7.045 MB / 2.647 GB, free: 78.82 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002196/8.047, allocations: 1.732 MB / 2.649 GB, free: 78.76 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007134/8.054, allocations: 1.983 MB / 2.651 GB, free: 78.66 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=158): time 1.009e-05/8.054, allocations: 0 / 2.651 GB, free: 78.66 MB / 0.7292 GB Notification: Performance of matching and sorting (n=158): time 0.01196/8.066, allocations: 4.703 MB / 2.655 GB, free: 78.33 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/8.066, allocations: 69.31 kB / 2.655 GB, free: 78.26 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007359/8.073, allocations: 3.947 MB / 2.659 GB, free: 77.94 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0007784/8.074, allocations: 31.17 kB / 2.659 GB, free: 77.91 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.002446/8.077, allocations: 2.419 MB / 2.662 GB, free: 77.07 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.001051/8.078, allocations: 0.5402 MB / 2.662 GB, free: 76.72 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/8.078, allocations: 0 / 2.662 GB, free: 76.72 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001811/8.078, allocations: 419.4 kB / 2.663 GB, free: 76.41 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/8.08, allocations: 1.44 MB / 2.664 GB, free: 76.4 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002636/8.083, allocations: 2.697 MB / 2.667 GB, free: 74.86 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006891/8.09, allocations: 2.49 MB / 2.669 GB, free: 74.83 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.463e-05/8.09, allocations: 7.75 kB / 2.669 GB, free: 74.83 MB / 0.7292 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.03857/8.128, allocations: 8.873 MB / 2.678 GB, free: 74.47 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.004161/8.132, allocations: 14.99 MB / 2.692 GB, free: 58.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.345e-05/8.133, allocations: 29.25 kB / 2.692 GB, free: 58.67 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03271/8.165, allocations: 6.213 MB / 2.698 GB, free: 58.58 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003255/8.169, allocations: 0.6499 MB / 2.699 GB, free: 58.58 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/8.18, allocations: 5.528 MB / 2.704 GB, free: 56.94 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007167/8.188, allocations: 310.5 kB / 2.705 GB, free: 56.89 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001056/8.189, allocations: 158.9 kB / 2.705 GB, free: 56.88 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/8.189, allocations: 4.562 kB / 2.705 GB, free: 56.88 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03804/8.227, allocations: 8.175 MB / 2.713 GB, free: 56.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001821/8.227, allocations: 37.53 kB / 2.713 GB, free: 56.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03297/8.26, allocations: 6.154 MB / 2.719 GB, free: 56.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003626/8.264, allocations: 0.6385 MB / 2.72 GB, free: 56.55 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01747/8.281, allocations: 8.227 MB / 2.728 GB, free: 53.31 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006989/8.288, allocations: 291.9 kB / 2.728 GB, free: 53.26 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001042/8.289, allocations: 145.2 kB / 2.728 GB, free: 53.26 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 280 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.001794/8.291, allocations: 206 kB / 2.728 GB, free: 53.13 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002419/8.294, allocations: 433.8 kB / 2.729 GB, free: 52.91 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03146/8.325, allocations: 7.205 MB / 2.736 GB, free: 52.6 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.947e-05/8.325, allocations: 24.94 kB / 2.736 GB, free: 52.6 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/8.325, allocations: 0 / 2.736 GB, free: 52.6 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01639/8.342, allocations: 6.586 MB / 2.742 GB, free: 50.3 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03412/8.376, allocations: 12.57 MB / 2.754 GB, free: 40.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.139e-05/8.376, allocations: 4 kB / 2.754 GB, free: 40.58 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002403/8.378, allocations: 374.5 kB / 2.755 GB, free: 40.29 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004698/8.383, allocations: 2.436 MB / 2.757 GB, free: 38.28 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005607/8.384, allocations: 29.47 kB / 2.757 GB, free: 38.25 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00946/8.393, allocations: 4.799 MB / 2.762 GB, free: 33.38 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.17e-05/8.393, allocations: 8 kB / 2.762 GB, free: 33.38 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02616/8.419, allocations: 9.597 MB / 2.771 GB, free: 23.75 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005282/8.425, allocations: 1.077 MB / 2.772 GB, free: 22.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003308/8.428, allocations: 4 kB / 2.772 GB, free: 22.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006975/8.435, allocations: 267.2 kB / 2.773 GB, free: 22.38 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007551/8.436, allocations: 104.2 kB / 2.773 GB, free: 22.28 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006891/8.437, allocations: 83.92 kB / 2.773 GB, free: 22.2 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.007561/8.444, allocations: 2.977 MB / 2.776 GB, free: 19.23 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.333e-06/8.444, allocations: 0 / 2.776 GB, free: 19.23 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.01408/8.458, allocations: 2.701 MB / 2.778 GB, free: 16.52 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.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 121 * 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.002824/8.461, allocations: 1.157 MB / 2.779 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.01499/8.476, allocations: 7.017 MB / 2.786 GB, free: 8.457 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/8.476, allocations: 8.188 kB / 2.786 GB, free: 8.449 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.004956/8.481, allocations: 2.379 MB / 2.789 GB, free: 6.062 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01436/8.496, allocations: 2.393 MB / 2.791 GB, free: 3.773 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6082/9.104, allocations: 7.503 MB / 2.798 GB, free: 97.44 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004221/9.108, allocations: 3.305 MB / 2.801 GB, free: 96.66 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.01161/9.12, allocations: 2.756 MB / 2.804 GB, free: 96.62 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/9.121, allocations: 253.7 kB / 2.804 GB, free: 96.62 MB / 0.7292 GB Notification: Performance of SimCode: time 3.887e-06/9.121, allocations: 0 / 2.804 GB, free: 96.62 MB / 0.7292 GB Notification: Performance of Templates: time 0.1909/9.312, allocations: 104 MB / 2.906 GB, free: 91.91 MB / 0.7292 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)