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: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.842/1.842, allocations: 288.2 MB / 303.2 MB, free: 8.129 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.001276/0.001276, allocations: 177.1 kB / 371.8 MB, free: 10.27 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.804/1.804, allocations: 205.4 MB / 0.6305 GB, free: 10.01 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.0008579/0.000858, allocations: 101.6 kB / 0.7439 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004057/0.0004059, allocations: 14.34 kB / 0.8668 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2475, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.251/1.498, allocations: 420.4 MB / 1.39 GB, free: 7.984 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/1.499, allocations: 93.83 kB / 1.39 GB, free: 7.938 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 6.021/7.52, allocations: 1.454 GB / 2.844 GB, free: 14.12 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.394e-06/7.52, allocations: 0 / 2.844 GB, free: 14.12 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001132/7.521, allocations: 147.8 kB / 2.844 GB, free: 13.97 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.02345/7.544, allocations: 5.899 MB / 2.85 GB, free: 7.98 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/7.544, allocations: 8.031 kB / 2.85 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002738/7.547, allocations: 475.3 kB / 2.851 GB, free: 7.496 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005949/7.553, allocations: 0.8099 MB / 2.851 GB, free: 6.68 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02252/7.576, allocations: 6.807 MB / 2.858 GB, free: 15.79 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004952/7.576, allocations: 262.5 kB / 2.858 GB, free: 15.53 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002025/7.578, allocations: 348 kB / 2.859 GB, free: 15.19 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01847/7.597, allocations: 5.383 MB / 2.864 GB, free: 9.559 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002979/7.597, allocations: 11.88 kB / 2.864 GB, free: 9.547 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00181/7.599, allocations: 148 kB / 2.864 GB, free: 9.402 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/7.599, allocations: 87.92 kB / 2.864 GB, free: 9.316 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0126/7.612, allocations: 5.066 MB / 2.869 GB, free: 4.238 MB / 0.9792 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.7992/8.411, allocations: 22.73 MB / 2.891 GB, free: 134.9 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007133/8.418, allocations: 2.719 MB / 2.894 GB, free: 134.9 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01695/8.435, allocations: 7.015 MB / 2.901 GB, free: 132.7 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003143/8.438, allocations: 1.84 MB / 2.903 GB, free: 132.7 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008099/8.446, allocations: 2.033 MB / 2.905 GB, free: 132.6 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=157): time 2.039e-05/8.447, allocations: 0 / 2.905 GB, free: 132.6 MB / 0.9792 GB Notification: Performance of matching and sorting (n=157): time 0.01892/8.465, allocations: 6.622 MB / 2.911 GB, free: 132 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.967e-05/8.466, allocations: 151.9 kB / 2.911 GB, free: 131.8 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009695/8.475, allocations: 4.555 MB / 2.916 GB, free: 131.5 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0009259/8.476, allocations: 71.02 kB / 2.916 GB, free: 131.5 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.002585/8.479, allocations: 2.453 MB / 2.918 GB, free: 130.9 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.001181/8.48, allocations: 0.5514 MB / 2.919 GB, free: 130.6 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/8.48, allocations: 54.31 kB / 2.919 GB, free: 130.6 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001933/8.48, allocations: 411.1 kB / 2.919 GB, free: 130.3 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002466/8.483, allocations: 1.529 MB / 2.921 GB, free: 130.3 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003068/8.486, allocations: 2.829 MB / 2.923 GB, free: 128.7 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003465/8.49, allocations: 1.985 MB / 2.925 GB, free: 128.7 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.63e-05/8.49, allocations: 9.688 kB / 2.925 GB, free: 128.7 MB / 0.9792 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01124/8.501, allocations: 5.569 MB / 2.931 GB, free: 128.3 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.003521/8.504, allocations: 15.28 MB / 2.946 GB, free: 111.9 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/8.505, allocations: 37.78 kB / 2.946 GB, free: 111.9 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06889/8.573, allocations: 11.46 MB / 2.957 GB, free: 111.9 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003343/8.577, allocations: 0.7056 MB / 2.958 GB, free: 111.9 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00722/8.584, allocations: 4.716 MB / 2.962 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006965/8.591, allocations: 364.8 kB / 2.963 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008983/8.592, allocations: 164.2 kB / 2.963 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/8.592, allocations: 0 / 2.963 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008279/8.6, allocations: 5.033 MB / 2.968 GB, free: 110.2 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.591e-05/8.601, allocations: 32.38 kB / 2.968 GB, free: 110.2 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06717/8.668, allocations: 11.38 MB / 2.979 GB, free: 110.1 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003226/8.671, allocations: 0.6923 MB / 2.979 GB, free: 110.1 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/8.681, allocations: 7.8 MB / 2.987 GB, free: 106.8 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006262/8.688, allocations: 343.3 kB / 2.987 GB, free: 106.8 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007383/8.689, allocations: 151.3 kB / 2.988 GB, free: 106.8 MB / 0.9792 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 () * 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.004315/8.693, allocations: 1.547 MB / 2.989 GB, free: 106.6 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002015/8.695, allocations: 466.9 kB / 2.989 GB, free: 106.3 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008177/8.703, allocations: 4.584 MB / 2.994 GB, free: 106.1 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.192e-05/8.703, allocations: 16.06 kB / 2.994 GB, free: 106.1 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/8.703, allocations: 0 / 2.994 GB, free: 106.1 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01255/8.716, allocations: 6.497 MB / 3 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03636/8.752, allocations: 13.15 MB / 3.013 GB, free: 103.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.198e-05/8.752, allocations: 4.062 kB / 3.013 GB, free: 103.5 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002686/8.755, allocations: 423.7 kB / 3.014 GB, free: 103.4 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06512/8.82, allocations: 11.65 MB / 3.025 GB, free: 102.7 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006178/8.821, allocations: 41.52 kB / 3.025 GB, free: 102.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006076/8.827, allocations: 4.127 MB / 3.029 GB, free: 101.1 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/8.827, allocations: 0 / 3.029 GB, free: 101.1 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02213/8.849, allocations: 9.179 MB / 3.038 GB, free: 100.5 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005493/8.854, allocations: 1.093 MB / 3.039 GB, free: 100.1 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001834/8.856, allocations: 33.75 kB / 3.039 GB, free: 100.1 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004235/8.861, allocations: 298.5 kB / 3.039 GB, free: 100.1 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003119/8.861, allocations: 108.1 kB / 3.039 GB, free: 100.1 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002633/8.861, allocations: 88.91 kB / 3.04 GB, free: 100.1 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.00557/8.867, allocations: 3.517 MB / 3.043 GB, free: 99.91 MB / 0.9792 GB Notification: Performance of sort global known variables: time 2.5e-07/8.867, allocations: 0 / 3.043 GB, free: 99.91 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.013/8.88, allocations: 2.818 MB / 3.046 GB, free: 99.8 MB / 0.9792 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 (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.02177/8.902, allocations: 10.87 MB / 3.056 GB, free: 98.36 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.01574/8.917, allocations: 7.377 MB / 3.064 GB, free: 97.8 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/8.917, allocations: 2.922 kB / 3.064 GB, free: 97.8 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.005389/8.923, allocations: 2.493 MB / 3.066 GB, free: 97.75 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01411/8.937, allocations: 2.716 MB / 3.069 GB, free: 97.62 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0332/8.97, allocations: 40.5 MB / 3.108 GB, free: 64 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003758/8.974, allocations: 3.313 MB / 3.111 GB, free: 63.17 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.00731/8.981, allocations: 1.677 MB / 3.113 GB, free: 62.97 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003869/8.985, allocations: 2.007 MB / 3.115 GB, free: 62.96 MB / 0.9792 GB Notification: Performance of SimCode: time 1.272e-06/8.985, allocations: 0 / 3.115 GB, free: 62.96 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8927/9.878, allocations: 158.4 MB / 3.27 GB, free: 168.3 MB / 1.01 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00025/9.878, allocations: 259 kB / 3.27 GB, free: 168 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.299/17.18, allocations: 0 / 3.27 GB, free: 168 MB / 1.01 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)