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.7445/0.7445, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 179.4 kB / 187.3 MB, free: 11.87 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.463/1.463, allocations: 221.3 MB / 441.4 MB, free: 4.641 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.001119/0.001119, allocations: 88.98 kB / 0.5124 GB, free: 24.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001888/0.001888, allocations: 276.8 kB / 0.5939 GB, free: 7.938 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.381e-05/5.383e-05, allocations: 4 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4605/0.4605, allocations: 82.76 MB / 0.7642 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8713/1.332, allocations: 377.9 MB / 1.133 GB, free: 11.5 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/1.332, allocations: 86.75 kB / 1.133 GB, free: 11.46 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 6.498/7.831, allocations: 1.475 GB / 2.608 GB, free: 89.88 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.184e-06/7.831, allocations: 0 / 2.608 GB, free: 89.88 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.001269/7.832, allocations: 151.6 kB / 2.608 GB, free: 89.85 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.01956/7.852, allocations: 4.532 MB / 2.613 GB, free: 88.18 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.363e-05/7.852, allocations: 7.625 kB / 2.613 GB, free: 88.18 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007225/7.859, allocations: 0.7972 MB / 2.614 GB, free: 87.88 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02839/7.887, allocations: 6.718 MB / 2.62 GB, free: 87.04 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009572/7.888, allocations: 265.4 kB / 2.62 GB, free: 87.03 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002796/7.891, allocations: 344 kB / 2.621 GB, free: 87.03 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01988/7.911, allocations: 5.246 MB / 2.626 GB, free: 86.36 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000455/7.912, allocations: 11.38 kB / 2.626 GB, free: 86.36 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002376/7.914, allocations: 144.7 kB / 2.626 GB, free: 86.36 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004495/7.915, allocations: 122.5 kB / 2.626 GB, free: 86.35 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01495/7.93, allocations: 4.916 MB / 2.631 GB, free: 86.32 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.05235/7.982, allocations: 22.77 MB / 2.653 GB, free: 76.42 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005193/7.987, allocations: 2.483 MB / 2.656 GB, free: 76.36 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003027/7.99, allocations: 1.774 MB / 2.657 GB, free: 76.32 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01691/8.007, allocations: 7.144 MB / 2.664 GB, free: 74.06 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00305/8.01, allocations: 1.787 MB / 2.666 GB, free: 74 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007672/8.018, allocations: 2.048 MB / 2.668 GB, free: 73.87 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=158): time 1.802e-05/8.018, allocations: 0 / 2.668 GB, free: 73.87 MB / 0.7292 GB Notification: Performance of matching and sorting (n=158): time 0.008863/8.027, allocations: 4.051 MB / 2.672 GB, free: 73.54 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/8.027, allocations: 72.52 kB / 2.672 GB, free: 73.47 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/8.039, allocations: 4.489 MB / 2.676 GB, free: 73.12 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0009458/8.04, allocations: 68.73 kB / 2.676 GB, free: 73.09 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.003451/8.043, allocations: 2.434 MB / 2.679 GB, free: 72.31 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.001273/8.045, allocations: 0.5627 MB / 2.679 GB, free: 71.96 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005468/8.045, allocations: 52.5 kB / 2.679 GB, free: 71.96 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002702/8.046, allocations: 415.9 kB / 2.68 GB, free: 71.65 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002628/8.048, allocations: 1.454 MB / 2.681 GB, free: 71.64 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003581/8.052, allocations: 2.739 MB / 2.684 GB, free: 70.09 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003421/8.055, allocations: 1.925 MB / 2.686 GB, free: 70.02 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.707e-05/8.055, allocations: 10.12 kB / 2.686 GB, free: 70.02 MB / 0.7292 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.03459/8.09, allocations: 8.45 MB / 2.694 GB, free: 69.61 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.005195/8.095, allocations: 15.24 MB / 2.709 GB, free: 53.28 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001569/8.095, allocations: 33.28 kB / 2.709 GB, free: 53.28 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08904/8.184, allocations: 15.4 MB / 2.724 GB, free: 52.73 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003171/8.188, allocations: 0.6475 MB / 2.725 GB, free: 52.73 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007865/8.196, allocations: 4.723 MB / 2.729 GB, free: 51.12 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006913/8.203, allocations: 369.7 kB / 2.73 GB, free: 51.07 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009107/8.203, allocations: 150.3 kB / 2.73 GB, free: 51.07 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/8.204, allocations: 3.031 kB / 2.73 GB, free: 51.07 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03284/8.236, allocations: 7.938 MB / 2.738 GB, free: 50.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002093/8.237, allocations: 36.75 kB / 2.738 GB, free: 50.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08704/8.324, allocations: 15.32 MB / 2.753 GB, free: 50.04 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003261/8.327, allocations: 0.6461 MB / 2.753 GB, free: 50.03 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/8.338, allocations: 7.687 MB / 2.761 GB, free: 46.72 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006573/8.345, allocations: 353 kB / 2.761 GB, free: 46.67 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009411/8.346, allocations: 151.9 kB / 2.761 GB, free: 46.67 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.001706/8.348, allocations: 291.8 kB / 2.761 GB, free: 46.54 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002301/8.35, allocations: 456.1 kB / 2.762 GB, free: 46.11 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02668/8.377, allocations: 6.797 MB / 2.768 GB, free: 42.89 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.695e-05/8.377, allocations: 23.83 kB / 2.769 GB, free: 42.88 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/8.377, allocations: 4 kB / 2.769 GB, free: 42.87 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01293/8.39, allocations: 6.107 MB / 2.774 GB, free: 39.09 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03256/8.422, allocations: 12.5 MB / 2.787 GB, free: 29.33 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-05/8.423, allocations: 3.172 kB / 2.787 GB, free: 29.33 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002508/8.425, allocations: 375.3 kB / 2.787 GB, free: 29.04 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06289/8.488, allocations: 11.63 MB / 2.798 GB, free: 19.25 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006133/8.489, allocations: 51.95 kB / 2.798 GB, free: 19.2 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006174/8.495, allocations: 4.116 MB / 2.802 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/8.495, allocations: 0 / 2.802 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02143/8.516, allocations: 9.165 MB / 2.811 GB, free: 5.812 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005469/8.522, allocations: 1.104 MB / 2.813 GB, free: 4.684 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002648/8.524, allocations: 32 kB / 2.813 GB, free: 4.652 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006107/8.531, allocations: 303 kB / 2.813 GB, free: 4.355 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006133/8.531, allocations: 109.1 kB / 2.813 GB, free: 4.246 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000606/8.532, allocations: 83.55 kB / 2.813 GB, free: 4.168 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.008841/8.541, allocations: 3.459 MB / 2.816 GB, free: 0.7227 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.283e-06/8.541, allocations: 7.938 kB / 2.816 GB, free: 0.7148 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.01854/8.559, allocations: 2.773 MB / 2.819 GB, free: 13.94 MB / 0.7448 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.004769/8.564, allocations: 1.194 MB / 2.82 GB, free: 12.89 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.01989/8.584, allocations: 7.255 MB / 2.827 GB, free: 5.605 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/8.584, allocations: 8.156 kB / 2.827 GB, free: 5.602 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.006241/8.59, allocations: 2.423 MB / 2.83 GB, free: 3.184 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01798/8.608, allocations: 2.69 MB / 2.832 GB, free: 0.5977 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6147/9.223, allocations: 7.702 MB / 2.84 GB, free: 107.6 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002938/9.226, allocations: 3.3 MB / 2.843 GB, free: 106.8 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.01044/9.237, allocations: 3.106 MB / 2.846 GB, free: 106.8 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/9.238, allocations: 265.1 kB / 2.846 GB, free: 106.8 MB / 0.7448 GB Notification: Performance of SimCode: time 1.814e-06/9.238, allocations: 0 / 2.846 GB, free: 106.8 MB / 0.7448 GB Notification: Performance of Templates: time 0.2024/9.44, allocations: 122.7 MB / 2.966 GB, free: 95.98 MB / 0.7448 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)