Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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) 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 Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.703/1.703, allocations: 285.4 MB / 298 MB, free: 6.016 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001308/0.001308, allocations: 168.9 kB / 366.4 MB, free: 2.098 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.724/1.724, allocations: 205.1 MB / 0.6248 GB, free: 7.73 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009317/0.0009312, allocations: 97.8 kB / 0.738 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.926e-05/3.928e-05, allocations: 7.984 kB / 0.8583 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.76/0.7601, allocations: 115.3 MB / 0.9709 GB, free: 77.73 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.144/1.904, allocations: 420.3 MB / 1.381 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/1.904, allocations: 82.03 kB / 1.381 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 6.208/8.112, allocations: 1.449 GB / 2.83 GB, free: 121.2 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.545e-06/8.112, allocations: 0 / 2.83 GB, free: 121.2 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001314/8.113, allocations: 150.3 kB / 2.83 GB, free: 121.2 MB / 0.9636 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.01855/8.132, allocations: 4.581 MB / 2.835 GB, free: 119.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.017e-05/8.132, allocations: 9.375 kB / 2.835 GB, free: 119.5 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006476/8.138, allocations: 0.8048 MB / 2.836 GB, free: 119.2 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02202/8.16, allocations: 6.76 MB / 2.842 GB, free: 118.3 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004637/8.161, allocations: 265.2 kB / 2.843 GB, free: 118.3 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001917/8.163, allocations: 347.9 kB / 2.843 GB, free: 118.3 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/8.176, allocations: 5.283 MB / 2.848 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.889e-05/8.176, allocations: 13.12 kB / 2.848 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006687/8.176, allocations: 144.2 kB / 2.848 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.26e-05/8.176, allocations: 82.59 kB / 2.848 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008535/8.185, allocations: 4.921 MB / 2.853 GB, free: 117.6 MB / 0.9636 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.03959/8.225, allocations: 22.71 MB / 2.875 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003828/8.229, allocations: 2.621 MB / 2.878 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/8.231, allocations: 1.703 MB / 2.88 GB, free: 107.6 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01337/8.244, allocations: 7.028 MB / 2.886 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002527/8.247, allocations: 1.782 MB / 2.888 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009106/8.256, allocations: 2.029 MB / 2.89 GB, free: 105.1 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=157): time 2.322e-05/8.256, allocations: 0 / 2.89 GB, free: 105.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=157): time 0.02026/8.276, allocations: 5.557 MB / 2.896 GB, free: 104.8 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/8.276, allocations: 159.5 kB / 2.896 GB, free: 104.6 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01042/8.287, allocations: 4.506 MB / 2.9 GB, free: 104.2 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0009437/8.288, allocations: 74.86 kB / 2.9 GB, free: 104.2 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.002515/8.29, allocations: 2.446 MB / 2.903 GB, free: 103.4 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.00113/8.291, allocations: 0.5597 MB / 2.903 GB, free: 103.1 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/8.292, allocations: 55.12 kB / 2.903 GB, free: 103.1 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001588/8.292, allocations: 413.5 kB / 2.904 GB, free: 102.8 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/8.294, allocations: 1.466 MB / 2.905 GB, free: 102.8 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002713/8.297, allocations: 2.774 MB / 2.908 GB, free: 101.2 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002535/8.299, allocations: 1.943 MB / 2.91 GB, free: 101.1 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.867e-05/8.299, allocations: 7.281 kB / 2.91 GB, free: 101.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03106/8.33, allocations: 7.982 MB / 2.917 GB, free: 100.7 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.003872/8.334, allocations: 15.27 MB / 2.932 GB, free: 84.38 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/8.334, allocations: 36.86 kB / 2.932 GB, free: 84.38 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08876/8.423, allocations: 15.4 MB / 2.947 GB, free: 83.89 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003381/8.427, allocations: 0.6979 MB / 2.948 GB, free: 83.88 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007288/8.434, allocations: 4.715 MB / 2.953 GB, free: 82.29 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006807/8.441, allocations: 367.9 kB / 2.953 GB, free: 82.23 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007432/8.441, allocations: 152 kB / 2.953 GB, free: 82.23 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/8.441, allocations: 3.906 kB / 2.953 GB, free: 82.23 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02931/8.471, allocations: 7.456 MB / 2.96 GB, free: 82.02 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/8.471, allocations: 34.47 kB / 2.96 GB, free: 82.02 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09037/8.561, allocations: 15.32 MB / 2.975 GB, free: 80.96 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003224/8.565, allocations: 0.6916 MB / 2.976 GB, free: 80.91 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/8.575, allocations: 7.707 MB / 2.984 GB, free: 76.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006205/8.581, allocations: 351 kB / 2.984 GB, free: 76.08 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007707/8.582, allocations: 155.1 kB / 2.984 GB, free: 76.05 MB / 0.9636 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 (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.001109/8.583, allocations: 288.4 kB / 2.984 GB, free: 75.81 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001878/8.585, allocations: 465.2 kB / 2.985 GB, free: 75.57 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02241/8.607, allocations: 6.589 MB / 2.991 GB, free: 73.82 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.952e-05/8.607, allocations: 19.61 kB / 2.991 GB, free: 73.82 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/8.607, allocations: 2.469 kB / 2.991 GB, free: 73.82 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01251/8.62, allocations: 6.38 MB / 2.998 GB, free: 70.79 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03369/8.654, allocations: 13.02 MB / 3.01 GB, free: 59.09 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.431e-05/8.654, allocations: 0 / 3.01 GB, free: 59.09 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002556/8.656, allocations: 419.5 kB / 3.011 GB, free: 58.68 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06262/8.719, allocations: 11.64 MB / 3.022 GB, free: 47.12 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005791/8.72, allocations: 55.95 kB / 3.022 GB, free: 47.06 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005759/8.725, allocations: 4.107 MB / 3.026 GB, free: 42.88 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/8.725, allocations: 0 / 3.026 GB, free: 42.88 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01946/8.745, allocations: 9.02 MB / 3.035 GB, free: 33.86 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004757/8.75, allocations: 1.1 MB / 3.036 GB, free: 32.73 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002077/8.752, allocations: 32 kB / 3.036 GB, free: 32.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005347/8.757, allocations: 299.1 kB / 3.036 GB, free: 32.41 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003632/8.758, allocations: 105.2 kB / 3.036 GB, free: 32.3 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003547/8.758, allocations: 79.92 kB / 3.036 GB, free: 32.22 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.006156/8.764, allocations: 3.472 MB / 3.04 GB, free: 28.77 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.61e-07/8.764, allocations: 0 / 3.04 GB, free: 28.77 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01445/8.779, allocations: 2.821 MB / 3.043 GB, free: 25.94 MB / 0.9636 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 120 * 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.003177/8.782, allocations: 1.255 MB / 3.044 GB, free: 24.83 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.01556/8.797, allocations: 7.345 MB / 3.051 GB, free: 17.44 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/8.798, allocations: 5.016 kB / 3.051 GB, free: 17.44 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.005145/8.803, allocations: 2.424 MB / 3.053 GB, free: 15.02 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01785/8.821, allocations: 2.715 MB / 3.056 GB, free: 12.41 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02504/8.846, allocations: 7.73 MB / 3.064 GB, free: 4.648 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005331/8.851, allocations: 3.315 MB / 3.067 GB, free: 17.3 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.01344/8.865, allocations: 3.002 MB / 3.07 GB, free: 14.41 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00161/8.866, allocations: 271.3 kB / 3.07 GB, free: 14.14 MB / 0.9792 GB Notification: Performance of SimCode: time 1.042e-06/8.866, allocations: 0 / 3.07 GB, free: 14.14 MB / 0.9792 GB Notification: Performance of Templates: time 0.9867/9.853, allocations: 124.2 MB / 3.191 GB, free: 131.8 MB / 0.9792 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)