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 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.8544/0.8544, allocations: 140.1 MB / 156 MB, free: 5.176 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001195/0.001195, allocations: 185.5 kB / 188.5 MB, free: 15.84 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.961/1.961, allocations: 205.4 MB / 426.3 MB, free: 8.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001208/0.001208, allocations: 80.88 kB / 0.4945 GB, free: 8.43 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001824/0.001824, allocations: 278.7 kB / 0.5728 GB, free: 66.23 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000543/0.0005431, allocations: 20 kB / 0.662 GB, free: 6.832 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.454/0.4545, allocations: 79.29 MB / 0.7395 GB, free: 46.38 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8032/1.258, allocations: 389.6 MB / 1.12 GB, free: 5.98 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/1.258, allocations: 86.84 kB / 1.12 GB, free: 5.938 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 5.887/7.145, allocations: 1.443 GB / 2.563 GB, free: 90.32 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.884e-06/7.145, allocations: 1.375 kB / 2.563 GB, free: 90.32 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.001029/7.146, allocations: 152.1 kB / 2.564 GB, free: 90.29 MB / 0.7136 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.01952/7.166, allocations: 5.847 MB / 2.569 GB, free: 88.01 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/7.166, allocations: 11.41 kB / 2.569 GB, free: 88.01 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00539/7.171, allocations: 0.8024 MB / 2.57 GB, free: 87.7 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0203/7.192, allocations: 6.64 MB / 2.577 GB, free: 86.65 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004275/7.192, allocations: 260.6 kB / 2.577 GB, free: 86.64 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001718/7.194, allocations: 351.3 kB / 2.577 GB, free: 86.64 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/7.207, allocations: 5.4 MB / 2.582 GB, free: 85.93 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000198/7.208, allocations: 18.72 kB / 2.582 GB, free: 85.93 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001269/7.209, allocations: 141.6 kB / 2.583 GB, free: 85.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-05/7.209, allocations: 86.44 kB / 2.583 GB, free: 85.93 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009581/7.219, allocations: 5.066 MB / 2.588 GB, free: 85.9 MB / 0.7136 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.03721/7.256, allocations: 22.61 MB / 2.61 GB, free: 75.91 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004143/7.26, allocations: 2.626 MB / 2.612 GB, free: 75.86 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002428/7.263, allocations: 1.812 MB / 2.614 GB, free: 75.84 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01277/7.275, allocations: 6.968 MB / 2.621 GB, free: 73.57 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002769/7.278, allocations: 1.847 MB / 2.623 GB, free: 73.51 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006514/7.285, allocations: 2.031 MB / 2.625 GB, free: 73.4 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=156): time 1.538e-05/7.285, allocations: 0 / 2.625 GB, free: 73.4 MB / 0.7136 GB Notification: Performance of matching and sorting (n=156): time 0.01736/7.302, allocations: 6.986 MB / 2.631 GB, free: 72.77 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.54e-05/7.302, allocations: 152.6 kB / 2.632 GB, free: 72.62 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008648/7.311, allocations: 4.8 MB / 2.636 GB, free: 72.26 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0005238/7.311, allocations: 70.38 kB / 2.636 GB, free: 72.23 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.002519/7.314, allocations: 2.433 MB / 2.639 GB, free: 71.45 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008198/7.315, allocations: 0.5546 MB / 2.639 GB, free: 71.11 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003298/7.315, allocations: 50.47 kB / 2.639 GB, free: 71.11 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000194/7.315, allocations: 421 kB / 2.64 GB, free: 70.8 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002388/7.318, allocations: 1.531 MB / 2.641 GB, free: 70.79 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003086/7.321, allocations: 2.843 MB / 2.644 GB, free: 69.21 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00572/7.327, allocations: 4.284 MB / 2.648 GB, free: 67.99 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.609e-05/7.327, allocations: 13.28 kB / 2.648 GB, free: 67.99 MB / 0.7136 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.01085/7.338, allocations: 5.654 MB / 2.654 GB, free: 67.6 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007698/7.338, allocations: 1.096 MB / 2.655 GB, free: 66.23 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.775e-05/7.338, allocations: 32.09 kB / 2.655 GB, free: 66.23 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06371/7.402, allocations: 11.58 MB / 2.666 GB, free: 65.43 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003039/7.405, allocations: 0.6392 MB / 2.667 GB, free: 65.39 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007075/7.412, allocations: 4.732 MB / 2.671 GB, free: 62.94 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005641/7.418, allocations: 343.7 kB / 2.672 GB, free: 62.84 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007185/7.419, allocations: 161.6 kB / 2.672 GB, free: 62.82 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/7.419, allocations: 2.75 kB / 2.672 GB, free: 62.82 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008441/7.427, allocations: 5.035 MB / 2.677 GB, free: 59.83 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.286e-05/7.427, allocations: 32 kB / 2.677 GB, free: 59.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06211/7.49, allocations: 11.38 MB / 2.688 GB, free: 51.64 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/7.492, allocations: 0.6441 MB / 2.689 GB, free: 51.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/7.502, allocations: 7.729 MB / 2.696 GB, free: 44.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005225/7.508, allocations: 338.8 kB / 2.696 GB, free: 43.86 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006743/7.508, allocations: 146.3 kB / 2.697 GB, free: 43.73 MB / 0.7136 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 (286): * Single equations (assignments): 279 * 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.003828/7.512, allocations: 1.56 MB / 2.698 GB, free: 42.45 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001712/7.514, allocations: 466.2 kB / 2.699 GB, free: 41.99 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008593/7.523, allocations: 4.578 MB / 2.703 GB, free: 37.96 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/7.523, allocations: 16 kB / 2.703 GB, free: 37.94 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/7.523, allocations: 5.625 kB / 2.703 GB, free: 37.94 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01739/7.54, allocations: 7.339 MB / 2.71 GB, free: 30.36 MB / 0.7136 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.03219/7.572, allocations: 13.22 MB / 2.723 GB, free: 17.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.238e-05/7.572, allocations: 0 / 2.723 GB, free: 17.07 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002473/7.575, allocations: 375.6 kB / 2.723 GB, free: 16.71 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06138/7.636, allocations: 11.64 MB / 2.735 GB, free: 5.129 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005453/7.637, allocations: 47.97 kB / 2.735 GB, free: 5.082 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005517/7.642, allocations: 4.123 MB / 2.739 GB, free: 0.8828 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/7.642, allocations: 0 / 2.739 GB, free: 0.8828 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4982/8.141, allocations: 9.672 MB / 2.748 GB, free: 96.31 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003791/8.144, allocations: 1.058 MB / 2.749 GB, free: 96.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001246/8.146, allocations: 34.55 kB / 2.749 GB, free: 96.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003566/8.149, allocations: 283 kB / 2.75 GB, free: 96.21 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003858/8.15, allocations: 105.7 kB / 2.75 GB, free: 96.21 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000294/8.15, allocations: 82.95 kB / 2.75 GB, free: 96.21 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.00514/8.155, allocations: 3.273 MB / 2.753 GB, free: 96.04 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.21e-07/8.155, allocations: 3.594 kB / 2.753 GB, free: 96.04 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.009093/8.164, allocations: 2.782 MB / 2.756 GB, free: 96.04 MB / 0.7136 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 (128): * Single equations (assignments): 119 * 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.002337/8.167, allocations: 1.226 MB / 2.757 GB, free: 95.86 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.01388/8.181, allocations: 7.369 MB / 2.764 GB, free: 95.36 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/8.181, allocations: 3.609 kB / 2.764 GB, free: 95.36 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.004826/8.185, allocations: 2.481 MB / 2.767 GB, free: 95.32 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.013/8.198, allocations: 2.699 MB / 2.769 GB, free: 95.29 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01564/8.214, allocations: 11.01 MB / 2.78 GB, free: 91.31 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002382/8.217, allocations: 3.214 MB / 2.783 GB, free: 90.54 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.006091/8.223, allocations: 1.68 MB / 2.785 GB, free: 90.49 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/8.224, allocations: 355.3 kB / 2.785 GB, free: 90.49 MB / 0.7136 GB Notification: Performance of SimCode: time 8.02e-07/8.224, allocations: 0 / 2.785 GB, free: 90.49 MB / 0.7136 GB Notification: Performance of Templates: time 0.1577/8.381, allocations: 114.2 MB / 2.897 GB, free: 74.61 MB / 0.7136 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)