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.371/1.371, allocations: 252 MB / 267.3 MB, free: 10.85 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.001064/0.001064, allocations: 177.2 kB / 327 MB, free: 2.09 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.661/1.661, allocations: 205.4 MB / 0.578 GB, free: 20.09 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.0007532/0.0007531, allocations: 86.3 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003698, allocations: 9 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1879, allocations: 106.3 MB / 0.9009 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.05986/0.2478, allocations: 78.82 MB / 0.9779 GB, free: 296 kB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.03259/0.2804, allocations: 22.51 MB / 0.9999 GB, free: 9.738 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003666/0.2842, allocations: 95.31 kB / 0.9999 GB, free: 9.645 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.003376/0.2876, allocations: 1.007 MB / 1.001 GB, free: 8.633 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.007406/0.295, allocations: 2.573 MB / 1.003 GB, free: 6.051 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.008177/0.3032, allocations: 3.231 MB / 1.007 GB, free: 2.844 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.01777/0.321, allocations: 20.71 MB / 1.027 GB, free: 14.08 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007302/0.3283, allocations: 6.003 MB / 1.033 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008869/0.3372, allocations: 4.754 MB / 1.037 GB, free: 3.215 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007823/0.3451, allocations: 4.859 MB / 1.042 GB, free: 14.34 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.00141/0.3465, allocations: 260 kB / 1.042 GB, free: 14.08 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005022/0.3516, allocations: 1.63 MB / 1.044 GB, free: 12.45 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.001755/0.3533, allocations: 1.268 MB / 1.045 GB, free: 11.18 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.004296/0.3576, allocations: 2.901 MB / 1.048 GB, free: 8.254 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.3766/0.7343, allocations: 8.67 MB / 1.056 GB, free: 40.29 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.7344, allocations: 0.8125 kB / 1.056 GB, free: 40.29 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.895e-06/0.7344, allocations: 0 / 1.056 GB, free: 40.29 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.000326/0.7347, allocations: 2.906 kB / 1.056 GB, free: 40.29 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.01052/0.7452, allocations: 5.354 MB / 1.062 GB, free: 38.13 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.7453, allocations: 11.48 kB / 1.062 GB, free: 38.13 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001094/0.7464, allocations: 470.9 kB / 1.062 GB, free: 38.07 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003139/0.7495, allocations: 0.8469 MB / 1.063 GB, free: 37.76 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009681/0.7592, allocations: 5.188 MB / 1.068 GB, free: 36.82 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.7595, allocations: 258.5 kB / 1.068 GB, free: 36.81 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000938/0.7605, allocations: 347.3 kB / 1.069 GB, free: 36.81 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/0.7715, allocations: 5.755 MB / 1.074 GB, free: 36.11 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-05/0.7716, allocations: 9.5 kB / 1.074 GB, free: 36.11 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004874/0.7721, allocations: 146.9 kB / 1.074 GB, free: 36.11 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.989e-05/0.7722, allocations: 86.12 kB / 1.074 GB, free: 36.11 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009126/0.7814, allocations: 5.584 MB / 1.08 GB, free: 36.07 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.03078/0.8122, allocations: 24.01 MB / 1.103 GB, free: 25.08 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004009/0.8162, allocations: 2.803 MB / 1.106 GB, free: 25.02 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002767/0.819, allocations: 1.925 MB / 1.108 GB, free: 25 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01418/0.8332, allocations: 7.137 MB / 1.115 GB, free: 22.77 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002672/0.836, allocations: 1.947 MB / 1.117 GB, free: 22.27 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004109/0.8401, allocations: 1.244 MB / 1.118 GB, free: 21.75 MB / 0.698 GB Notification: Performance of pre-optimization done (n=155): time 6.502e-06/0.8401, allocations: 2.156 kB / 1.118 GB, free: 21.75 MB / 0.698 GB Notification: Performance of matching and sorting (n=155): time 0.01952/0.8596, allocations: 7.672 MB / 1.126 GB, free: 19.34 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.844e-05/0.8598, allocations: 146.8 kB / 1.126 GB, free: 19.18 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007043/0.8668, allocations: 4.894 MB / 1.13 GB, free: 17.93 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005792/0.8674, allocations: 65.8 kB / 1.131 GB, free: 17.89 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001786/0.8692, allocations: 2.448 MB / 1.133 GB, free: 16.88 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005998/0.8698, allocations: 0.5479 MB / 1.133 GB, free: 16.49 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.87, allocations: 51.81 kB / 1.134 GB, free: 16.49 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.8701, allocations: 416.5 kB / 1.134 GB, free: 16.16 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002263/0.8724, allocations: 1.711 MB / 1.136 GB, free: 15.82 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00262/0.875, allocations: 2.943 MB / 1.138 GB, free: 13.96 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00494/0.88, allocations: 4.652 MB / 1.143 GB, free: 12.01 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/0.88, allocations: 12 kB / 1.143 GB, free: 12 MB / 0.698 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.009076/0.8891, allocations: 6.159 MB / 1.149 GB, free: 7.184 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004413/0.8895, allocations: 1.107 MB / 1.15 GB, free: 5.633 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.79e-05/0.8896, allocations: 32 kB / 1.15 GB, free: 5.602 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06589/0.9555, allocations: 11.9 MB / 1.162 GB, free: 9.738 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002946/0.9585, allocations: 0.6674 MB / 1.162 GB, free: 9.109 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007773/0.9663, allocations: 5.049 MB / 1.167 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004985/0.9713, allocations: 339.8 kB / 1.168 GB, free: 3.672 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005604/0.9719, allocations: 163.1 kB / 1.168 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.9719, allocations: 4 kB / 1.168 GB, free: 3.512 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008114/0.98, allocations: 5.385 MB / 1.173 GB, free: 14.33 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-05/0.9801, allocations: 32 kB / 1.173 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06711/1.047, allocations: 11.68 MB / 1.185 GB, free: 2.648 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002938/1.05, allocations: 0.6618 MB / 1.185 GB, free: 2.031 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/1.062, allocations: 8.084 MB / 1.193 GB, free: 9.691 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00488/1.067, allocations: 327.9 kB / 1.193 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005061/1.067, allocations: 158.9 kB / 1.194 GB, free: 9.219 MB / 0.7448 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.00283/1.07, allocations: 1.546 MB / 1.195 GB, free: 7.703 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.071, allocations: 470.3 kB / 1.195 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007974/1.079, allocations: 4.874 MB / 1.2 GB, free: 2.379 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/1.079, allocations: 16 kB / 1.2 GB, free: 2.363 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/1.079, allocations: 2.875 kB / 1.2 GB, free: 2.363 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01917/1.098, allocations: 7.016 MB / 1.207 GB, free: 11.13 MB / 0.7605 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.03293/1.131, allocations: 13.23 MB / 1.22 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.367e-05/1.131, allocations: 0 / 1.22 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002666/1.134, allocations: 378.3 kB / 1.22 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08162/1.216, allocations: 11.91 MB / 1.232 GB, free: 1.664 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007357/1.217, allocations: 43.97 kB / 1.232 GB, free: 1.621 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00922/1.226, allocations: 4.374 MB / 1.236 GB, free: 13.18 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/1.226, allocations: 0 / 1.236 GB, free: 13.18 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03554/1.261, allocations: 9.754 MB / 1.246 GB, free: 3.422 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004866/1.266, allocations: 1.069 MB / 1.247 GB, free: 2.328 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002116/1.268, allocations: 31.98 kB / 1.247 GB, free: 2.297 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005672/1.274, allocations: 283.2 kB / 1.247 GB, free: 2.02 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006419/1.275, allocations: 105.2 kB / 1.247 GB, free: 1.918 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000528/1.275, allocations: 79.94 kB / 1.247 GB, free: 1.84 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.008288/1.284, allocations: 3.349 MB / 1.251 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.51e-07/1.284, allocations: 0 / 1.251 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0137/1.297, allocations: 2.71 MB / 1.253 GB, free: 11.79 MB / 0.8073 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03078/1.328, allocations: 10.65 MB / 1.264 GB, free: 1.176 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0199/1.348, allocations: 7.628 MB / 1.271 GB, free: 9.695 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.348, allocations: 4.891 kB / 1.271 GB, free: 9.691 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.006469/1.355, allocations: 2.527 MB / 1.274 GB, free: 7.188 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0174/1.372, allocations: 2.774 MB / 1.276 GB, free: 4.441 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1276/1.5, allocations: 52.04 MB / 1.327 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004015/1.504, allocations: 3.209 MB / 1.33 GB, free: 9.652 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.006774/1.511, allocations: 1.698 MB / 1.332 GB, free: 7.953 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003695/1.514, allocations: 2.003 MB / 1.334 GB, free: 5.949 MB / 0.8855 GB Notification: Performance of SimCode: time 6.91e-07/1.514, allocations: 3.094 kB / 1.334 GB, free: 5.949 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.156/4.671, allocations: 145.2 MB / 1.476 GB, free: 332.3 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002755/4.671, allocations: 292.3 kB / 1.476 GB, free: 331.9 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.325/11, allocations: 3.094 kB / 1.476 GB, free: 331.9 MB / 0.948 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)