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.846/0.846, allocations: 143.4 MB / 158.3 MB, free: 5.816 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.001517/0.001517, allocations: 177 kB / 191.5 MB, free: 5.773 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.626/1.626, allocations: 223.2 MB / 447.7 MB, free: 4.824 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.0009278/0.0009279, allocations: 84.39 kB / 0.5188 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001929/0.001929, allocations: 268 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004371/0.0004372, allocations: 10.97 kB / 0.6928 GB, free: 59.78 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2079, allocations: 82.8 MB / 0.7737 GB, free: 13.86 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.406/1.614, allocations: 377.9 MB / 1.143 GB, free: 249.2 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003387/1.615, allocations: 93.67 kB / 1.143 GB, free: 249.2 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.311/6.925, allocations: 1.48 GB / 2.623 GB, free: 73.46 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.186e-06/6.925, allocations: 3.969 kB / 2.623 GB, free: 73.46 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.0007979/6.926, allocations: 148.4 kB / 2.623 GB, free: 73.43 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.01967/6.946, allocations: 5.85 MB / 2.629 GB, free: 71.08 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/6.946, allocations: 9.938 kB / 2.629 GB, free: 71.08 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005483/6.951, allocations: 0.7998 MB / 2.63 GB, free: 70.78 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01916/6.971, allocations: 6.77 MB / 2.636 GB, free: 69.93 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003925/6.971, allocations: 264.3 kB / 2.636 GB, free: 69.93 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00136/6.972, allocations: 342 kB / 2.637 GB, free: 69.93 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009819/6.982, allocations: 5.346 MB / 2.642 GB, free: 69.25 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-05/6.982, allocations: 14.59 kB / 2.642 GB, free: 69.25 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005858/6.983, allocations: 140.5 kB / 2.642 GB, free: 69.25 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.455e-05/6.983, allocations: 118.8 kB / 2.642 GB, free: 69.24 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008512/6.992, allocations: 5.067 MB / 2.647 GB, free: 69.21 MB / 0.7292 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.03716/7.029, allocations: 22.8 MB / 2.67 GB, free: 59.25 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003914/7.033, allocations: 2.58 MB / 2.672 GB, free: 59.19 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01417/7.047, allocations: 7.138 MB / 2.679 GB, free: 56.91 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002635/7.05, allocations: 1.837 MB / 2.681 GB, free: 56.84 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007023/7.057, allocations: 2.055 MB / 2.683 GB, free: 56.71 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=158): time 1.321e-05/7.057, allocations: 0 / 2.683 GB, free: 56.71 MB / 0.7292 GB Notification: Performance of matching and sorting (n=158): time 0.01877/7.076, allocations: 7.154 MB / 2.69 GB, free: 56.08 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/7.076, allocations: 66.38 kB / 2.69 GB, free: 56.02 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007767/7.083, allocations: 4.542 MB / 2.694 GB, free: 55.7 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0007753/7.084, allocations: 66.33 kB / 2.694 GB, free: 55.66 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.002238/7.086, allocations: 2.434 MB / 2.697 GB, free: 54.88 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009917/7.088, allocations: 0.5634 MB / 2.697 GB, free: 54.53 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/7.088, allocations: 51.22 kB / 2.697 GB, free: 54.53 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000165/7.088, allocations: 412.2 kB / 2.698 GB, free: 54.23 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/7.09, allocations: 1.514 MB / 2.699 GB, free: 54.21 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003321/7.094, allocations: 2.802 MB / 2.702 GB, free: 52.47 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/7.097, allocations: 1.968 MB / 2.704 GB, free: 51.65 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/7.097, allocations: 7.812 kB / 2.704 GB, free: 51.65 MB / 0.7292 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.009039/7.106, allocations: 5.529 MB / 2.709 GB, free: 49.46 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.003395/7.109, allocations: 15.24 MB / 2.724 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.231e-05/7.109, allocations: 29.91 kB / 2.724 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06876/7.178, allocations: 11.46 MB / 2.735 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003136/7.181, allocations: 0.6523 MB / 2.736 GB, free: 28.55 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007005/7.188, allocations: 4.73 MB / 2.741 GB, free: 24.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006236/7.194, allocations: 362.8 kB / 2.741 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007603/7.195, allocations: 159.9 kB / 2.741 GB, free: 23.56 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/7.195, allocations: 4 kB / 2.741 GB, free: 23.56 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007637/7.203, allocations: 4.998 MB / 2.746 GB, free: 18.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.706e-05/7.203, allocations: 32 kB / 2.746 GB, free: 18.51 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06587/7.269, allocations: 11.39 MB / 2.757 GB, free: 7.152 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002851/7.272, allocations: 0.6435 MB / 2.758 GB, free: 6.508 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/7.282, allocations: 7.796 MB / 2.765 GB, free: 14.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005902/7.288, allocations: 351 kB / 2.766 GB, free: 14.08 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006124/7.289, allocations: 151.9 kB / 2.766 GB, free: 13.93 MB / 0.7448 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 () * Number of clocked 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.004385/7.293, allocations: 1.539 MB / 2.767 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002106/7.295, allocations: 462.3 kB / 2.768 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009047/7.304, allocations: 4.598 MB / 2.772 GB, free: 7.363 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.362e-05/7.304, allocations: 16 kB / 2.772 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/7.304, allocations: 4 kB / 2.772 GB, free: 7.344 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01179/7.316, allocations: 6.216 MB / 2.778 GB, free: 0.8867 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5539/7.87, allocations: 12.64 MB / 2.791 GB, free: 96.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/7.87, allocations: 1.094 kB / 2.791 GB, free: 96.5 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002635/7.873, allocations: 370.8 kB / 2.791 GB, free: 96.5 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07007/7.943, allocations: 11.63 MB / 2.802 GB, free: 96.48 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005083/7.944, allocations: 49.11 kB / 2.802 GB, free: 96.48 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005638/7.949, allocations: 4.114 MB / 2.807 GB, free: 94.93 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/7.949, allocations: 7.672 kB / 2.807 GB, free: 94.92 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0211/7.97, allocations: 9.326 MB / 2.816 GB, free: 94.56 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004718/7.975, allocations: 1.102 MB / 2.817 GB, free: 94.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002086/7.977, allocations: 31.09 kB / 2.817 GB, free: 94.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004957/7.982, allocations: 300.8 kB / 2.817 GB, free: 94.46 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000374/7.983, allocations: 105.3 kB / 2.817 GB, free: 94.46 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003406/7.983, allocations: 81.53 kB / 2.817 GB, free: 94.46 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.006599/7.99, allocations: 3.512 MB / 2.821 GB, free: 94.28 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5.61e-07/7.99, allocations: 0 / 2.821 GB, free: 94.28 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.01366/8.003, allocations: 2.777 MB / 2.823 GB, free: 94.26 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) * Number of clocked states: 0 () * 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.003066/8.006, allocations: 1.203 MB / 2.825 GB, free: 94.06 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0166/8.023, allocations: 7.29 MB / 2.832 GB, free: 93.6 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/8.023, allocations: 6.688 kB / 2.832 GB, free: 93.6 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.00542/8.028, allocations: 2.485 MB / 2.834 GB, free: 93.56 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01396/8.042, allocations: 2.693 MB / 2.837 GB, free: 93.54 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01917/8.062, allocations: 11 MB / 2.847 GB, free: 89.54 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002862/8.065, allocations: 3.297 MB / 2.851 GB, free: 88.77 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.006942/8.072, allocations: 1.734 MB / 2.852 GB, free: 88.72 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/8.073, allocations: 357.7 kB / 2.853 GB, free: 88.71 MB / 0.7448 GB Notification: Performance of SimCode: time 1.583e-06/8.073, allocations: 0 / 2.853 GB, free: 88.71 MB / 0.7448 GB Notification: Performance of Templates: time 0.1733/8.246, allocations: 113.1 MB / 2.963 GB, free: 64.35 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)