Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.837/2.837, allocations: 287.3 MB / 302.3 MB, free: 8.387 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.001552/0.001552, allocations: 178.9 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.4 MB / 0.6295 GB, free: 10.56 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001174/0.001173, allocations: 89.52 kB / 0.7428 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006449/0.0006455, allocations: 11.39 kB / 0.8656 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.219, allocations: 115.3 MB / 0.9782 GB, free: 28.41 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.1055/0.3245, allocations: 67.45 MB / 1.044 GB, free: 8.789 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.04586/0.3704, allocations: 19.61 MB / 1.063 GB, free: 5.152 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003925/0.3744, allocations: 87.31 kB / 1.063 GB, free: 5.066 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.006223/0.3807, allocations: 1.279 MB / 1.065 GB, free: 3.781 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.0139/0.3946, allocations: 3.139 MB / 1.068 GB, free: 0.6367 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.6797/1.074, allocations: 3.88 MB / 1.071 GB, free: 18.15 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01989/1.094, allocations: 8.872 MB / 1.08 GB, free: 18.13 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01316/1.107, allocations: 5.347 MB / 1.085 GB, free: 17.39 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01261/1.12, allocations: 4.082 MB / 1.089 GB, free: 17.39 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01029/1.13, allocations: 3.4 MB / 1.093 GB, free: 17.38 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.00267/1.133, allocations: 267 kB / 1.093 GB, free: 17.38 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008952/1.142, allocations: 1.229 MB / 1.094 GB, free: 17.38 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.003944/1.146, allocations: 1.21 MB / 1.095 GB, free: 17.38 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.004188/1.15, allocations: 1.134 MB / 1.096 GB, free: 17.34 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.01393/1.164, allocations: 6.982 MB / 1.103 GB, free: 16.87 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/1.164, allocations: 0 / 1.103 GB, free: 16.87 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.845e-06/1.164, allocations: 0 / 1.103 GB, free: 16.87 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0003351/1.165, allocations: 0 / 1.103 GB, free: 16.87 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 851 * Number of variables: 851 Notification: Performance of Generate backend data structure: time 0.02062/1.185, allocations: 5.528 MB / 1.109 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/1.186, allocations: 8.719 kB / 1.109 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00769/1.193, allocations: 0.8574 MB / 1.109 GB, free: 14.04 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01769/1.211, allocations: 4.781 MB / 1.114 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004717/1.211, allocations: 272.4 kB / 1.114 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002309/1.214, allocations: 349.8 kB / 1.115 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02192/1.236, allocations: 5.823 MB / 1.12 GB, free: 11.21 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001796/1.236, allocations: 10.72 kB / 1.12 GB, free: 11.21 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001714/1.238, allocations: 149.2 kB / 1.12 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/1.238, allocations: 84.25 kB / 1.121 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0193/1.257, allocations: 5.61 MB / 1.126 GB, free: 10.11 MB / 0.6823 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.06164/1.319, allocations: 24.43 MB / 1.15 GB, free: 11.22 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/1.33, allocations: 3.009 MB / 1.153 GB, free: 10.67 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02555/1.355, allocations: 7.419 MB / 1.16 GB, free: 4.887 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006752/1.362, allocations: 1.984 MB / 1.162 GB, free: 3.449 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008587/1.371, allocations: 1.287 MB / 1.163 GB, free: 2.27 MB / 0.698 GB Notification: Performance of pre-optimization done (n=163): time 1.471e-05/1.371, allocations: 3.75 kB / 1.163 GB, free: 2.27 MB / 0.698 GB Notification: Performance of matching and sorting (n=163): time 0.04363/1.415, allocations: 7.714 MB / 1.171 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002218/1.415, allocations: 304 kB / 1.171 GB, free: 11.95 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Fluid/Actuators/BaseClasses/ValveParameters.mo:29:3-35:74:writable] Warning: Parameter val.res3.dpValve_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Fluid/Interfaces/PartialTwoPortInterface.mo:8:3-10:52:writable] Warning: Parameter val.res3.m_flow_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Fluid/Actuators/BaseClasses/ValveParameters.mo:29:3-35:74:writable] Warning: Parameter val.res1.dpValve_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Fluid/Interfaces/PartialTwoPortInterface.mo:8:3-10:52:writable] Warning: Parameter val.res1.m_flow_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01583/1.431, allocations: 5.278 MB / 1.176 GB, free: 6.875 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001025/1.432, allocations: 72.11 kB / 1.176 GB, free: 6.801 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.00507/1.437, allocations: 2.518 MB / 1.179 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.001746/1.439, allocations: 0.5819 MB / 1.179 GB, free: 3.695 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005046/1.439, allocations: 56 kB / 1.179 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000344/1.44, allocations: 423.7 kB / 1.18 GB, free: 3.223 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006093/1.446, allocations: 1.727 MB / 1.181 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007684/1.453, allocations: 3.004 MB / 1.184 GB, free: 13.93 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007225/1.461, allocations: 2.187 MB / 1.187 GB, free: 11.78 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.246e-05/1.461, allocations: 12 kB / 1.187 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of matching and sorting (n=360) (initialization): time 0.02388/1.485, allocations: 6.223 MB / 1.193 GB, free: 5.738 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.007838/1.493, allocations: 15.54 MB / 1.208 GB, free: 4.742 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001862/1.493, allocations: 36 kB / 1.208 GB, free: 4.707 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1449/1.638, allocations: 11.88 MB / 1.219 GB, free: 8.867 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006365/1.644, allocations: 0.7517 MB / 1.22 GB, free: 8.156 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01552/1.66, allocations: 5.034 MB / 1.225 GB, free: 3.066 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008599/1.668, allocations: 363.7 kB / 1.225 GB, free: 2.707 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001181/1.67, allocations: 167.9 kB / 1.226 GB, free: 2.543 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/1.67, allocations: 4 kB / 1.226 GB, free: 2.539 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01883/1.689, allocations: 5.561 MB / 1.231 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/1.689, allocations: 36.19 kB / 1.231 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1409/1.83, allocations: 11.69 MB / 1.242 GB, free: 1.348 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006281/1.836, allocations: 0.7333 MB / 1.243 GB, free: 0.6133 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02208/1.858, allocations: 8.115 MB / 1.251 GB, free: 8.207 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008021/1.866, allocations: 350 kB / 1.251 GB, free: 7.867 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/1.867, allocations: 167.9 kB / 1.252 GB, free: 7.703 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (303): * Single equations (assignments): 292 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 3 * 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,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.005664/1.873, allocations: 1.585 MB / 1.253 GB, free: 6.105 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001967/1.875, allocations: 474.1 kB / 1.254 GB, free: 5.637 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01722/1.892, allocations: 4.969 MB / 1.258 GB, free: 0.6562 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.034e-05/1.892, allocations: 16 kB / 1.258 GB, free: 0.6406 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/1.892, allocations: 0 / 1.258 GB, free: 0.6406 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03993/1.932, allocations: 7.146 MB / 1.265 GB, free: 9.234 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06216/1.994, allocations: 13.49 MB / 1.279 GB, free: 11.68 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.56e-05/1.995, allocations: 0 / 1.279 GB, free: 11.68 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005237/2, allocations: 439.5 kB / 1.279 GB, free: 11.25 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1378/2.138, allocations: 11.91 MB / 1.291 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007334/2.138, allocations: 51.95 kB / 1.291 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/2.151, allocations: 4.363 MB / 1.295 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/2.151, allocations: 0 / 1.295 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06424/2.216, allocations: 9.938 MB / 1.305 GB, free: 0.9102 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008234/2.224, allocations: 1.143 MB / 1.306 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003413/2.227, allocations: 39.94 kB / 1.306 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01188/2.239, allocations: 299.2 kB / 1.306 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001385/2.241, allocations: 105.8 kB / 1.306 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009958/2.242, allocations: 87.92 kB / 1.306 GB, free: 15.22 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.01683/2.259, allocations: 3.626 MB / 1.31 GB, free: 11.62 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.934e-06/2.259, allocations: 0 / 1.31 GB, free: 11.62 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.02306/2.282, allocations: 2.79 MB / 1.313 GB, free: 8.824 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 8 (pump.vol.dynBal.U,hea.outCon.T,val.res1.filter.x[1],val.res1.filter.x[2],val.res3.filter.x[1],val.res3.filter.x[2],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 (135): * Single equations (assignments): 126 * 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,1 6,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003784/2.286, allocations: 0.5613 MB / 1.313 GB, free: 8.301 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0375/2.323, allocations: 7.888 MB / 1.321 GB, free: 348 kB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/2.323, allocations: 0.9375 kB / 1.321 GB, free: 348 kB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.01199/2.335, allocations: 2.56 MB / 1.323 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02453/2.36, allocations: 2.779 MB / 1.326 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03332/2.393, allocations: 11.83 MB / 1.338 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006488/2.4, allocations: 3.379 MB / 1.341 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01163/2.412, allocations: 1.764 MB / 1.343 GB, free: 9.992 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002823/2.414, allocations: 371.2 kB / 1.343 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of SimCode: time 1.233e-06/2.414, allocations: 0 / 1.343 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of Templates: time 0.9402/3.355, allocations: 111 MB / 1.451 GB, free: 346.8 MB / 0.9636 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)