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: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.409/1.409, allocations: 252 MB / 267.6 MB, free: 10.97 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.001074/0.001075, allocations: 180.3 kB / 327.3 MB, free: 2.234 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.918/1.918, allocations: 205.4 MB / 0.5783 GB, free: 20.25 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.000888/0.0008876, allocations: 97.73 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003427, allocations: 8.562 kB / 0.797 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2316, allocations: 106.3 MB / 0.9008 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.05524/0.2869, allocations: 74.43 MB / 0.9735 GB, free: 5.301 MB / 0.6199 GB Notification: Performance of NFInst.instExpressions: time 0.0336/0.3205, allocations: 20.96 MB / 0.994 GB, free: 320 kB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004768/0.3254, allocations: 91.31 kB / 0.9941 GB, free: 228 kB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.003746/0.3292, allocations: 0.8113 MB / 0.9948 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.008186/0.3374, allocations: 2.274 MB / 0.9971 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.009787/0.3472, allocations: 2.814 MB / 0.9998 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.02248/0.3697, allocations: 17.44 MB / 1.017 GB, free: 8.844 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0113/0.381, allocations: 5.263 MB / 1.022 GB, free: 3.523 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01206/0.3931, allocations: 4.63 MB / 1.027 GB, free: 14.88 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0109/0.4041, allocations: 4.575 MB / 1.031 GB, free: 10.28 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 0.002474/0.4066, allocations: 260 kB / 1.031 GB, free: 10.03 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006908/0.4136, allocations: 1.334 MB / 1.033 GB, free: 8.691 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 0.003445/0.417, allocations: 1.218 MB / 1.034 GB, free: 7.469 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 0.003726/0.4208, allocations: 1.108 MB / 1.035 GB, free: 6.352 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.01071/0.4315, allocations: 6.866 MB / 1.042 GB, free: 15.47 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.693e-05/0.4316, allocations: 7.938 kB / 1.042 GB, free: 15.46 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.625e-06/0.4316, allocations: 3.938 kB / 1.042 GB, free: 15.46 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0003999/0.432, allocations: 4 kB / 1.042 GB, free: 15.45 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.01484/0.4469, allocations: 5.412 MB / 1.047 GB, free: 9.949 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.4469, allocations: 8.031 kB / 1.047 GB, free: 9.941 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004781/0.4517, allocations: 0.8401 MB / 1.048 GB, free: 9.094 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/0.4658, allocations: 5.035 MB / 1.053 GB, free: 3.98 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004038/0.4663, allocations: 259.1 kB / 1.053 GB, free: 3.727 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001914/0.4682, allocations: 347.9 kB / 1.053 GB, free: 3.387 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5517/1.02, allocations: 5.721 MB / 1.059 GB, free: 141.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.76e-05/1.02, allocations: 14.34 kB / 1.059 GB, free: 141.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004967/1.021, allocations: 144.9 kB / 1.059 GB, free: 141.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.447e-05/1.021, allocations: 82.38 kB / 1.059 GB, free: 141.9 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/1.031, allocations: 5.556 MB / 1.064 GB, free: 141.8 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.04362/1.075, allocations: 24 MB / 1.088 GB, free: 127.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005167/1.08, allocations: 2.796 MB / 1.091 GB, free: 126.2 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003177/1.084, allocations: 1.923 MB / 1.092 GB, free: 125.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01389/1.097, allocations: 7.144 MB / 1.099 GB, free: 119.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002839/1.1, allocations: 1.941 MB / 1.101 GB, free: 118.7 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004684/1.105, allocations: 1.254 MB / 1.103 GB, free: 118.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=155): time 9.477e-06/1.105, allocations: 0 / 1.103 GB, free: 118.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=155): time 0.01964/1.125, allocations: 7.624 MB / 1.11 GB, free: 112.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/1.125, allocations: 153.8 kB / 1.11 GB, free: 112.6 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007111/1.132, allocations: 4.852 MB / 1.115 GB, free: 107.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0007551/1.133, allocations: 70.48 kB / 1.115 GB, free: 107.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.00198/1.135, allocations: 2.435 MB / 1.117 GB, free: 105.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009374/1.136, allocations: 0.547 MB / 1.118 GB, free: 104.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/1.136, allocations: 52 kB / 1.118 GB, free: 104.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001239/1.136, allocations: 411.4 kB / 1.118 GB, free: 104.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002503/1.139, allocations: 1.664 MB / 1.12 GB, free: 102.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002791/1.141, allocations: 2.885 MB / 1.123 GB, free: 99.09 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002775/1.144, allocations: 2.104 MB / 1.125 GB, free: 96.98 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.63e-05/1.144, allocations: 12 kB / 1.125 GB, free: 96.97 MB / 0.698 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.009748/1.154, allocations: 6.027 MB / 1.131 GB, free: 90.93 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006017/1.155, allocations: 1.1 MB / 1.132 GB, free: 89.36 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.801e-05/1.155, allocations: 32 kB / 1.132 GB, free: 89.33 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0631/1.218, allocations: 11.88 MB / 1.143 GB, free: 77.48 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002967/1.221, allocations: 0.663 MB / 1.144 GB, free: 76.82 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006859/1.228, allocations: 5.048 MB / 1.149 GB, free: 71.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005686/1.233, allocations: 343.7 kB / 1.149 GB, free: 71.36 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005924/1.234, allocations: 168.7 kB / 1.149 GB, free: 71.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/1.234, allocations: 8 kB / 1.149 GB, free: 71.19 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007994/1.242, allocations: 5.365 MB / 1.155 GB, free: 65.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.51e-05/1.242, allocations: 32 kB / 1.155 GB, free: 65.77 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06157/1.304, allocations: 11.67 MB / 1.166 GB, free: 54.14 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002765/1.306, allocations: 0.6552 MB / 1.167 GB, free: 53.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009613/1.316, allocations: 8.073 MB / 1.175 GB, free: 45.11 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004831/1.321, allocations: 325.2 kB / 1.175 GB, free: 44.79 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000579/1.322, allocations: 155.9 kB / 1.175 GB, free: 44.64 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.003029/1.325, allocations: 1.547 MB / 1.177 GB, free: 43.08 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001402/1.326, allocations: 462.2 kB / 1.177 GB, free: 42.62 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00745/1.334, allocations: 4.873 MB / 1.182 GB, free: 37.74 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.151e-05/1.334, allocations: 27.94 kB / 1.182 GB, free: 37.71 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/1.334, allocations: 0 / 1.182 GB, free: 37.71 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01633/1.35, allocations: 6.992 MB / 1.189 GB, free: 30.46 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.02888/1.379, allocations: 13.21 MB / 1.202 GB, free: 17.18 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.025e-05/1.379, allocations: 0 / 1.202 GB, free: 17.18 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/1.381, allocations: 379.5 kB / 1.202 GB, free: 16.81 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06162/1.443, allocations: 11.9 MB / 1.214 GB, free: 4.949 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005897/1.444, allocations: 47.97 kB / 1.214 GB, free: 4.902 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005622/1.449, allocations: 4.37 MB / 1.218 GB, free: 468 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/1.449, allocations: 0 / 1.218 GB, free: 468 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02546/1.475, allocations: 9.74 MB / 1.227 GB, free: 6.68 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003732/1.478, allocations: 1.077 MB / 1.228 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00149/1.48, allocations: 32 kB / 1.228 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004279/1.484, allocations: 279.2 kB / 1.229 GB, free: 5.273 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000347/1.485, allocations: 105.1 kB / 1.229 GB, free: 5.172 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002823/1.485, allocations: 83.94 kB / 1.229 GB, free: 5.09 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.006339/1.491, allocations: 3.306 MB / 1.232 GB, free: 1.801 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.21e-07/1.491, allocations: 0 / 1.232 GB, free: 1.801 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.01118/1.503, allocations: 2.711 MB / 1.235 GB, free: 15.12 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.001724/1.504, allocations: 0.5445 MB / 1.235 GB, free: 14.64 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.01729/1.522, allocations: 7.566 MB / 1.243 GB, free: 7.035 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/1.522, allocations: 0.8906 kB / 1.243 GB, free: 7.031 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.005967/1.528, allocations: 2.511 MB / 1.245 GB, free: 4.516 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01497/1.543, allocations: 2.781 MB / 1.248 GB, free: 1.766 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02011/1.563, allocations: 11.52 MB / 1.259 GB, free: 6.211 MB / 0.7449 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00294/1.566, allocations: 3.197 MB / 1.262 GB, free: 2.984 MB / 0.7449 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001924/1.568, allocations: 371.2 kB / 1.263 GB, free: 2.621 MB / 0.7449 GB Notification: Performance of SimCode: time 1.372e-06/1.568, allocations: 0 / 1.263 GB, free: 2.621 MB / 0.7449 GB Notification: Performance of Templates: time 0.697/2.265, allocations: 163.4 MB / 1.422 GB, free: 265.4 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)