Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 387.4 MB / 394.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 184.8 kB / 487.4 MB, free: 5.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.595/1.595, allocations: 221.5 MB / 0.7824 GB, free: 1.047 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 106 kB / 0.9219 GB, free: 2.277 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.057e-05/2.068e-05, allocations: 0 / 1.067 GB, free: 185.8 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3069, allocations: 142.4 MB / 1.206 GB, free: 44.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.36/1.666, allocations: 417.8 MB / 1.614 GB, free: 4.062 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/1.667, allocations: 90.78 kB / 1.614 GB, free: 4.02 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 7.283/8.95, allocations: 1.5 GB / 3.114 GB, free: 185.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.305e-06/8.95, allocations: 0 / 3.114 GB, free: 185.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.001802/8.952, allocations: 157.1 kB / 3.115 GB, free: 185.8 MB / 1.167 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.02488/8.977, allocations: 4.564 MB / 3.119 GB, free: 184.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.297e-05/8.977, allocations: 12.41 kB / 3.119 GB, free: 184.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007408/8.984, allocations: 0.8925 MB / 3.12 GB, free: 184 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03017/9.015, allocations: 6.903 MB / 3.127 GB, free: 183.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005449/9.015, allocations: 104.7 kB / 3.127 GB, free: 183.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002207/9.017, allocations: 205.9 kB / 3.127 GB, free: 183.4 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01419/9.032, allocations: 4.745 MB / 3.132 GB, free: 183.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02099/9.053, allocations: 4.79 MB / 3.136 GB, free: 182.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004872/9.053, allocations: 9.969 kB / 3.136 GB, free: 182.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002159/9.055, allocations: 8.625 kB / 3.136 GB, free: 182.7 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002275/9.056, allocations: 118.8 kB / 3.136 GB, free: 182.7 MB / 1.167 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.04992/9.106, allocations: 22.2 MB / 3.158 GB, free: 172.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004759/9.11, allocations: 2.517 MB / 3.161 GB, free: 172.9 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002988/9.113, allocations: 1.765 MB / 3.162 GB, free: 172.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01928/9.133, allocations: 7.043 MB / 3.169 GB, free: 170.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003273/9.136, allocations: 1.751 MB / 3.171 GB, free: 170.5 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008549/9.145, allocations: 1.982 MB / 3.173 GB, free: 170.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=158): time 2.461e-05/9.145, allocations: 0 / 3.173 GB, free: 170.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=158): time 0.01468/9.159, allocations: 4.718 MB / 3.177 GB, free: 170.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/9.16, allocations: 67.22 kB / 3.178 GB, free: 170 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01194/9.172, allocations: 3.995 MB / 3.181 GB, free: 169.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001021/9.173, allocations: 32.52 kB / 3.181 GB, free: 169.7 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.00393/9.177, allocations: 2.451 MB / 3.184 GB, free: 168.8 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001495/9.178, allocations: 0.5335 MB / 3.184 GB, free: 168.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006762/9.179, allocations: 0 / 3.184 GB, free: 168.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0003283/9.179, allocations: 412 kB / 3.185 GB, free: 168.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002743/9.182, allocations: 1.45 MB / 3.186 GB, free: 168.1 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003681/9.186, allocations: 2.701 MB / 3.189 GB, free: 166.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007756/9.193, allocations: 2.493 MB / 3.191 GB, free: 166.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-05/9.194, allocations: 11.44 kB / 3.191 GB, free: 166.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.04129/9.235, allocations: 8.891 MB / 3.2 GB, free: 166.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.004968/9.24, allocations: 15.05 MB / 3.215 GB, free: 150.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001485/9.24, allocations: 34.27 kB / 3.215 GB, free: 150.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03249/9.273, allocations: 6.211 MB / 3.221 GB, free: 150.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/9.276, allocations: 0.6581 MB / 3.221 GB, free: 150.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/9.288, allocations: 5.52 MB / 3.227 GB, free: 148.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007507/9.295, allocations: 314.4 kB / 3.227 GB, free: 148.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/9.297, allocations: 159.6 kB / 3.227 GB, free: 148.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/9.297, allocations: 6.094 kB / 3.227 GB, free: 148.8 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03817/9.335, allocations: 8.196 MB / 3.235 GB, free: 148.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001896/9.335, allocations: 30.03 kB / 3.235 GB, free: 148.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03312/9.368, allocations: 6.161 MB / 3.241 GB, free: 148.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00324/9.371, allocations: 0.6436 MB / 3.242 GB, free: 148.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01656/9.388, allocations: 8.222 MB / 3.25 GB, free: 145.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007893/9.396, allocations: 299.6 kB / 3.25 GB, free: 145.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/9.397, allocations: 155.4 kB / 3.25 GB, free: 145.4 MB / 1.167 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.001767/9.399, allocations: 197.5 kB / 3.251 GB, free: 145.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002469/9.401, allocations: 435.5 kB / 3.251 GB, free: 145.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03009/9.432, allocations: 7.224 MB / 3.258 GB, free: 144.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.193e-05/9.432, allocations: 18.59 kB / 3.258 GB, free: 144.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/9.432, allocations: 0 / 3.258 GB, free: 144.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01561/9.447, allocations: 6.597 MB / 3.264 GB, free: 143.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03754/9.485, allocations: 12.63 MB / 3.277 GB, free: 142.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.513e-05/9.485, allocations: 0 / 3.277 GB, free: 142.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002556/9.488, allocations: 379.3 kB / 3.277 GB, free: 142.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004684/9.492, allocations: 2.439 MB / 3.28 GB, free: 142.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005401/9.493, allocations: 28.19 kB / 3.28 GB, free: 142.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009468/9.502, allocations: 4.807 MB / 3.284 GB, free: 140.7 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.258e-05/9.502, allocations: 4.625 kB / 3.284 GB, free: 140.7 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02615/9.529, allocations: 9.616 MB / 3.294 GB, free: 140.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005094/9.534, allocations: 1.077 MB / 3.295 GB, free: 139.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002798/9.537, allocations: 14.66 kB / 3.295 GB, free: 139.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006386/9.543, allocations: 272.1 kB / 3.295 GB, free: 139.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006338/9.544, allocations: 109.3 kB / 3.295 GB, free: 139.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005567/9.544, allocations: 79.78 kB / 3.295 GB, free: 139.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.00794/9.552, allocations: 3.017 MB / 3.298 GB, free: 139.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.81e-07/9.552, allocations: 3.5 kB / 3.298 GB, free: 139.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01789/9.57, allocations: 2.706 MB / 3.301 GB, free: 139.2 MB / 1.167 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.003757/9.574, allocations: 1.15 MB / 3.302 GB, free: 138.9 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01766/9.592, allocations: 7.033 MB / 3.309 GB, free: 138.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/9.592, allocations: 3.875 kB / 3.309 GB, free: 138.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.005809/9.597, allocations: 2.384 MB / 3.311 GB, free: 138.4 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01585/9.613, allocations: 2.385 MB / 3.313 GB, free: 138.4 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02248/9.636, allocations: 7.593 MB / 3.321 GB, free: 136.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005267/9.641, allocations: 3.324 MB / 3.324 GB, free: 136.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.01298/9.654, allocations: 2.824 MB / 3.327 GB, free: 135.9 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/9.656, allocations: 260.2 kB / 3.327 GB, free: 135.9 MB / 1.167 GB Notification: Performance of SimCode: time 1.433e-06/9.656, allocations: 0 / 3.327 GB, free: 135.9 MB / 1.167 GB Notification: Performance of Templates: time 0.1921/9.848, allocations: 104.3 MB / 3.429 GB, free: 71.66 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.csv","../files/Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches