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.34/2.34, allocations: 387.1 MB / 399.7 MB, free: 9.461 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.001144/0.001144, allocations: 184.2 kB / 492.3 MB, free: 0.6133 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.581/1.581, allocations: 221.3 MB / 0.7871 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009822/0.0009822, allocations: 106.7 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.263e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.305, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.35/1.655, allocations: 418.4 MB / 1.621 GB, free: 11.33 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/1.656, allocations: 83.83 kB / 1.621 GB, free: 11.29 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 7.218/8.874, allocations: 1.509 GB / 3.13 GB, free: 198.4 MB / 1.182 GB Notification: Performance of FrontEnd: time 2.795e-06/8.874, allocations: 0 / 3.13 GB, free: 198.4 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001725/8.875, allocations: 162.9 kB / 3.13 GB, free: 198.4 MB / 1.182 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.02539/8.901, allocations: 4.554 MB / 3.134 GB, free: 196.8 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 8.057e-05/8.901, allocations: 9.531 kB / 3.134 GB, free: 196.8 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008184/8.909, allocations: 0.8957 MB / 3.135 GB, free: 196.5 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02526/8.934, allocations: 6.904 MB / 3.142 GB, free: 195.9 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000502/8.935, allocations: 259.8 kB / 3.142 GB, free: 195.9 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/8.937, allocations: 352.7 kB / 3.142 GB, free: 195.9 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/8.949, allocations: 5.254 MB / 3.148 GB, free: 195.2 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.76e-05/8.949, allocations: 8.312 kB / 3.148 GB, free: 195.2 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006362/8.95, allocations: 148.3 kB / 3.148 GB, free: 195.2 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/8.95, allocations: 121.7 kB / 3.148 GB, free: 195.2 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008808/8.959, allocations: 4.936 MB / 3.153 GB, free: 195.2 MB / 1.182 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.0488/9.008, allocations: 22.84 MB / 3.175 GB, free: 185.3 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004877/9.013, allocations: 2.496 MB / 3.177 GB, free: 185.3 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003029/9.016, allocations: 1.774 MB / 3.179 GB, free: 185.2 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01838/9.034, allocations: 7.15 MB / 3.186 GB, free: 183 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003336/9.038, allocations: 1.799 MB / 3.188 GB, free: 182.9 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008325/9.046, allocations: 2.054 MB / 3.19 GB, free: 182.8 MB / 1.182 GB Notification: Performance of pre-optimization done (n=158): time 1.926e-05/9.046, allocations: 3.719 kB / 3.19 GB, free: 182.8 MB / 1.182 GB Notification: Performance of matching and sorting (n=158): time 0.009792/9.056, allocations: 4.061 MB / 3.194 GB, free: 182.4 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.342e-05/9.056, allocations: 68.94 kB / 3.194 GB, free: 182.4 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01357/9.07, allocations: 4.55 MB / 3.198 GB, free: 182 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001116/9.071, allocations: 65.02 kB / 3.198 GB, free: 182 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.004407/9.075, allocations: 2.468 MB / 3.201 GB, free: 181.2 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.001707/9.077, allocations: 0.5608 MB / 3.201 GB, free: 180.9 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007782/9.078, allocations: 59.09 kB / 3.201 GB, free: 180.9 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0003522/9.078, allocations: 413.2 kB / 3.202 GB, free: 180.5 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002984/9.081, allocations: 1.462 MB / 3.203 GB, free: 180.5 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003674/9.085, allocations: 2.735 MB / 3.206 GB, free: 179 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003274/9.088, allocations: 1.932 MB / 3.208 GB, free: 178.9 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.512e-05/9.088, allocations: 11.72 kB / 3.208 GB, free: 178.9 MB / 1.182 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.03504/9.123, allocations: 8.463 MB / 3.216 GB, free: 178.5 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.00457/9.128, allocations: 15.3 MB / 3.231 GB, free: 162.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.062e-05/9.128, allocations: 32.47 kB / 3.231 GB, free: 162.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09204/9.22, allocations: 15.4 MB / 3.246 GB, free: 162.1 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/9.224, allocations: 0.6594 MB / 3.247 GB, free: 162.1 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008398/9.232, allocations: 4.714 MB / 3.251 GB, free: 160.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007379/9.239, allocations: 369.1 kB / 3.252 GB, free: 160.5 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001007/9.24, allocations: 155.4 kB / 3.252 GB, free: 160.5 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/9.24, allocations: 3.656 kB / 3.252 GB, free: 160.5 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03425/9.275, allocations: 7.952 MB / 3.26 GB, free: 160.4 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002874/9.275, allocations: 30.22 kB / 3.26 GB, free: 160.4 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09241/9.368, allocations: 15.32 MB / 3.275 GB, free: 159.9 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003356/9.371, allocations: 0.6576 MB / 3.275 GB, free: 159.9 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/9.383, allocations: 7.698 MB / 3.283 GB, free: 156.5 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006952/9.39, allocations: 351.8 kB / 3.283 GB, free: 156.5 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009738/9.391, allocations: 152.7 kB / 3.283 GB, free: 156.5 MB / 1.182 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.001811/9.393, allocations: 282.3 kB / 3.283 GB, free: 156.4 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002616/9.395, allocations: 464.3 kB / 3.284 GB, free: 156.1 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02575/9.421, allocations: 6.81 MB / 3.291 GB, free: 155.9 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-05/9.421, allocations: 15.47 kB / 3.291 GB, free: 155.9 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/9.421, allocations: 14.77 kB / 3.291 GB, free: 155.9 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01075/9.432, allocations: 6.107 MB / 3.297 GB, free: 154.5 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0297/9.462, allocations: 12.54 MB / 3.309 GB, free: 153.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.341e-05/9.462, allocations: 3.938 kB / 3.309 GB, free: 153.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00254/9.464, allocations: 384.5 kB / 3.309 GB, free: 153.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06358/9.528, allocations: 11.63 MB / 3.321 GB, free: 152.4 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005999/9.529, allocations: 49.03 kB / 3.321 GB, free: 152.4 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00619/9.535, allocations: 4.118 MB / 3.325 GB, free: 150.8 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/9.535, allocations: 0 / 3.325 GB, free: 150.8 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02185/9.557, allocations: 9.185 MB / 3.334 GB, free: 150.2 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005249/9.562, allocations: 1.109 MB / 3.335 GB, free: 149.9 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002383/9.564, allocations: 34.8 kB / 3.335 GB, free: 149.9 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005775/9.57, allocations: 304 kB / 3.335 GB, free: 149.8 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004465/9.571, allocations: 104.6 kB / 3.335 GB, free: 149.8 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003978/9.571, allocations: 82.77 kB / 3.335 GB, free: 149.8 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.007108/9.578, allocations: 3.509 MB / 3.339 GB, free: 149.6 MB / 1.182 GB Notification: Performance of sort global known variables: time 7.01e-07/9.578, allocations: 0 / 3.339 GB, free: 149.6 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.01534/9.594, allocations: 2.779 MB / 3.341 GB, free: 149.3 MB / 1.182 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.003142/9.597, allocations: 1.202 MB / 3.342 GB, free: 149 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.01772/9.615, allocations: 7.29 MB / 3.35 GB, free: 148.5 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/9.615, allocations: 0 / 3.35 GB, free: 148.5 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.005719/9.62, allocations: 2.43 MB / 3.352 GB, free: 148.4 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01651/9.637, allocations: 2.691 MB / 3.355 GB, free: 148.3 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/9.656, allocations: 7.777 MB / 3.362 GB, free: 146.3 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002959/9.659, allocations: 3.334 MB / 3.365 GB, free: 144.1 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.01214/9.671, allocations: 3.065 MB / 3.368 GB, free: 142.2 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/9.672, allocations: 261.4 kB / 3.369 GB, free: 142 MB / 1.182 GB Notification: Performance of SimCode: time 1.402e-06/9.672, allocations: 8 kB / 3.369 GB, free: 142 MB / 1.182 GB Notification: Performance of Templates: time 0.2123/9.885, allocations: 123 MB / 3.489 GB, free: 31.97 MB / 1.182 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