Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.431/1.431, allocations: 252 MB / 267 MB, free: 10.93 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00125/0.001251, allocations: 183.9 kB / 326.6 MB, free: 2.191 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.98/1.98, allocations: 205.4 MB / 0.5777 GB, free: 20.22 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008534/0.0008534, allocations: 90.3 kB / 0.6823 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003608, allocations: 14.03 kB / 0.7964 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2549, allocations: 106.3 MB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.05949/0.3144, allocations: 74.42 MB / 0.973 GB, free: 5.16 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.03403/0.3485, allocations: 20.96 MB / 0.9934 GB, free: 172 kB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004505/0.3531, allocations: 91.31 kB / 0.9935 GB, free: 80 kB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.003803/0.3569, allocations: 0.8152 MB / 0.9943 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.00815/0.3651, allocations: 2.274 MB / 0.9965 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.008839/0.3739, allocations: 2.824 MB / 0.9993 GB, free: 10.18 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.0185/0.3925, allocations: 17.44 MB / 1.016 GB, free: 8.691 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008692/0.4012, allocations: 5.259 MB / 1.021 GB, free: 3.375 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01053/0.4118, allocations: 4.63 MB / 1.026 GB, free: 14.73 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008757/0.4206, allocations: 4.579 MB / 1.03 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.002113/0.4228, allocations: 260 kB / 1.031 GB, free: 9.875 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007993/0.4308, allocations: 1.334 MB / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.003668/0.4345, allocations: 1.218 MB / 1.033 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.003548/0.4381, allocations: 1.104 MB / 1.034 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.4488, allocations: 6.882 MB / 1.041 GB, free: 15.3 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.4488, allocations: 0 / 1.041 GB, free: 15.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.766e-06/0.4488, allocations: 0 / 1.041 GB, free: 15.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0004185/0.4493, allocations: 0 / 1.041 GB, free: 15.3 MB / 0.698 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.01635/0.4656, allocations: 5.416 MB / 1.046 GB, free: 9.797 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.4657, allocations: 12.03 kB / 1.046 GB, free: 9.785 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002235/0.4679, allocations: 475.3 kB / 1.047 GB, free: 9.309 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005316/0.4733, allocations: 0.8401 MB / 1.048 GB, free: 8.461 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/0.4872, allocations: 5.027 MB / 1.052 GB, free: 3.355 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003652/0.4876, allocations: 263.1 kB / 1.053 GB, free: 3.098 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001757/0.4894, allocations: 340 kB / 1.053 GB, free: 2.766 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5562/1.046, allocations: 5.725 MB / 1.059 GB, free: 141.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-05/1.046, allocations: 14.38 kB / 1.059 GB, free: 141.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005876/1.046, allocations: 143 kB / 1.059 GB, free: 141.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.346e-05/1.046, allocations: 83.14 kB / 1.059 GB, free: 141.8 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/1.06, allocations: 5.56 MB / 1.064 GB, free: 141.7 MB / 0.698 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.04848/1.108, allocations: 24.01 MB / 1.088 GB, free: 127.3 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006089/1.115, allocations: 2.787 MB / 1.09 GB, free: 125.8 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003498/1.118, allocations: 1.922 MB / 1.092 GB, free: 124.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01853/1.137, allocations: 7.139 MB / 1.099 GB, free: 119.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003997/1.141, allocations: 1.943 MB / 1.101 GB, free: 118.4 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005342/1.146, allocations: 1.245 MB / 1.102 GB, free: 117.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=155): time 1.581e-05/1.146, allocations: 0 / 1.102 GB, free: 117.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=155): time 0.02217/1.168, allocations: 7.638 MB / 1.11 GB, free: 112 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/1.168, allocations: 157.8 kB / 1.11 GB, free: 111.8 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008639/1.177, allocations: 4.837 MB / 1.115 GB, free: 107 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0007779/1.178, allocations: 69.7 kB / 1.115 GB, free: 106.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.002611/1.181, allocations: 2.439 MB / 1.117 GB, free: 104.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001156/1.182, allocations: 0.5529 MB / 1.118 GB, free: 103.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005246/1.182, allocations: 52 kB / 1.118 GB, free: 103.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001983/1.183, allocations: 415.4 kB / 1.118 GB, free: 103.5 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002981/1.186, allocations: 1.66 MB / 1.12 GB, free: 101.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003445/1.189, allocations: 2.893 MB / 1.123 GB, free: 98.33 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003439/1.192, allocations: 2.104 MB / 1.125 GB, free: 96.22 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.963e-05/1.193, allocations: 8 kB / 1.125 GB, free: 96.21 MB / 0.698 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01217/1.205, allocations: 6.021 MB / 1.131 GB, free: 90.18 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006029/1.205, allocations: 1.107 MB / 1.132 GB, free: 88.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.365e-05/1.205, allocations: 32 kB / 1.132 GB, free: 88.57 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06494/1.27, allocations: 11.86 MB / 1.143 GB, free: 76.74 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/1.273, allocations: 0.6681 MB / 1.144 GB, free: 76.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006902/1.28, allocations: 5.044 MB / 1.149 GB, free: 70.95 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005678/1.286, allocations: 347.7 kB / 1.149 GB, free: 70.61 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007569/1.287, allocations: 164.5 kB / 1.149 GB, free: 70.45 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/1.287, allocations: 6.328 kB / 1.149 GB, free: 70.45 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007958/1.295, allocations: 5.369 MB / 1.155 GB, free: 65.06 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.34e-05/1.295, allocations: 36.94 kB / 1.155 GB, free: 65.03 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06463/1.36, allocations: 11.67 MB / 1.166 GB, free: 53.38 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002829/1.363, allocations: 0.6558 MB / 1.167 GB, free: 52.73 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009696/1.372, allocations: 8.071 MB / 1.175 GB, free: 44.36 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005519/1.378, allocations: 327.9 kB / 1.175 GB, free: 44.04 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008709/1.379, allocations: 161.6 kB / 1.175 GB, free: 43.88 MB / 0.698 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 (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.003421/1.382, allocations: 1.542 MB / 1.177 GB, free: 42.32 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001564/1.384, allocations: 466.2 kB / 1.177 GB, free: 41.86 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007934/1.392, allocations: 4.868 MB / 1.182 GB, free: 36.99 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.839e-05/1.392, allocations: 27.94 kB / 1.182 GB, free: 36.96 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/1.392, allocations: 0 / 1.182 GB, free: 36.96 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01649/1.408, allocations: 6.996 MB / 1.189 GB, free: 29.7 MB / 0.698 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.03065/1.439, allocations: 13.2 MB / 1.201 GB, free: 16.43 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-05/1.439, allocations: 0 / 1.201 GB, free: 16.43 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002312/1.441, allocations: 379.5 kB / 1.202 GB, free: 16.05 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06609/1.508, allocations: 11.89 MB / 1.213 GB, free: 4.199 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005324/1.508, allocations: 51.95 kB / 1.214 GB, free: 4.148 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005848/1.514, allocations: 4.371 MB / 1.218 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.457e-06/1.514, allocations: 7.984 kB / 1.218 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02678/1.541, allocations: 9.732 MB / 1.227 GB, free: 5.93 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004044/1.545, allocations: 1.069 MB / 1.228 GB, free: 4.836 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001601/1.547, allocations: 28 kB / 1.228 GB, free: 4.809 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004704/1.551, allocations: 283.2 kB / 1.229 GB, free: 4.531 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004699/1.552, allocations: 101.2 kB / 1.229 GB, free: 4.434 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003337/1.552, allocations: 79.92 kB / 1.229 GB, free: 4.355 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.006544/1.559, allocations: 3.317 MB / 1.232 GB, free: 1.055 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.42e-07/1.559, allocations: 0 / 1.232 GB, free: 1.055 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01141/1.57, allocations: 2.707 MB / 1.235 GB, free: 14.38 MB / 0.7292 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 (127): * Single equations (assignments): 118 * 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.0287/1.599, allocations: 10.61 MB / 1.245 GB, free: 3.781 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.01898/1.618, allocations: 7.554 MB / 1.252 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/1.618, allocations: 4.891 kB / 1.252 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.006477/1.625, allocations: 2.526 MB / 1.255 GB, free: 9.648 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01649/1.641, allocations: 2.778 MB / 1.258 GB, free: 6.906 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1121/1.753, allocations: 40.47 MB / 1.297 GB, free: 11.71 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005143/1.758, allocations: 3.221 MB / 1.3 GB, free: 8.465 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.008489/1.767, allocations: 1.697 MB / 1.302 GB, free: 6.762 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005378/1.772, allocations: 2.003 MB / 1.304 GB, free: 4.758 MB / 0.7917 GB Notification: Performance of SimCode: time 2.094e-06/1.772, allocations: 0 / 1.304 GB, free: 4.758 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6759/2.448, allocations: 151.4 MB / 1.452 GB, free: 253.1 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/2.449, allocations: 272.7 kB / 1.452 GB, free: 252.8 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.485/8.934, allocations: 0 / 1.452 GB, free: 252.8 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)