Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.77/1.77, allocations: 292.3 MB / 308.1 MB, free: 4.301 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.00181/0.00181, allocations: 193.5 kB / 376.9 MB, free: 1.797 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.569/1.569, allocations: 205 MB / 0.6354 GB, free: 9.789 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009482/0.0009479, allocations: 108.6 kB / 0.748 GB, free: 61.39 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.00112, allocations: 51.92 kB / 0.8703 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2348, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.4955/0.7304, allocations: 80.32 MB / 1.061 GB, free: 56.66 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0302/0.7606, allocations: 22.78 MB / 1.083 GB, free: 43.6 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004901/0.7656, allocations: 101.3 kB / 1.083 GB, free: 43.55 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.003815/0.7694, allocations: 1.028 MB / 1.084 GB, free: 42.99 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.00858/0.7781, allocations: 2.572 MB / 1.086 GB, free: 41.52 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.01035/0.7884, allocations: 3.207 MB / 1.09 GB, free: 39.89 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.01778/0.8062, allocations: 20.8 MB / 1.11 GB, free: 32.52 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008742/0.815, allocations: 6.135 MB / 1.116 GB, free: 30.09 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01162/0.8267, allocations: 4.866 MB / 1.121 GB, free: 28.17 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009921/0.8367, allocations: 4.998 MB / 1.126 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.002446/0.8392, allocations: 320.2 kB / 1.126 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007914/0.8471, allocations: 1.687 MB / 1.128 GB, free: 25.68 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.00267/0.8498, allocations: 1.363 MB / 1.129 GB, free: 25 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.006245/0.8561, allocations: 2.985 MB / 1.132 GB, free: 23.32 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0114/0.8675, allocations: 8.836 MB / 1.14 GB, free: 20.24 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 9.388e-06/0.8676, allocations: 0 / 1.14 GB, free: 20.24 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.334e-06/0.8676, allocations: 3.938 kB / 1.14 GB, free: 20.23 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0003187/0.8679, allocations: 0 / 1.14 GB, free: 20.23 MB / 0.7448 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.01891/0.8868, allocations: 6.464 MB / 1.147 GB, free: 16.66 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.8869, allocations: 14.03 kB / 1.147 GB, free: 16.66 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004754/0.8917, allocations: 0.8184 MB / 1.148 GB, free: 16.34 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01203/0.9037, allocations: 5.211 MB / 1.153 GB, free: 13.96 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002779/0.904, allocations: 266.8 kB / 1.153 GB, free: 13.84 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/0.9053, allocations: 338.2 kB / 1.153 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.917, allocations: 5.725 MB / 1.159 GB, free: 11.41 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.509e-05/0.9171, allocations: 15.95 kB / 1.159 GB, free: 11.4 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005022/0.9176, allocations: 153.1 kB / 1.159 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.847e-05/0.9177, allocations: 87.25 kB / 1.159 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01286/0.9306, allocations: 5.519 MB / 1.164 GB, free: 9.598 MB / 0.7448 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.04681/0.9774, allocations: 23.72 MB / 1.188 GB, free: 9.949 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005682/0.9832, allocations: 2.738 MB / 1.19 GB, free: 8.949 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003208/0.9864, allocations: 1.895 MB / 1.192 GB, free: 8.223 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0164/1.003, allocations: 7.038 MB / 1.199 GB, free: 3.215 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003895/1.007, allocations: 1.922 MB / 1.201 GB, free: 2.031 MB / 0.7605 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005679/1.013, allocations: 1.188 MB / 1.202 GB, free: 0.8398 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=155): time 1.788e-05/1.013, allocations: 4 kB / 1.202 GB, free: 0.8359 MB / 0.7605 GB Notification: Performance of matching and sorting (n=155): time 0.02665/1.039, allocations: 7.358 MB / 1.209 GB, free: 9.422 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/1.039, allocations: 145.8 kB / 1.209 GB, free: 9.25 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/1.05, allocations: 4.844 MB / 1.214 GB, free: 4.418 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0007541/1.051, allocations: 73.69 kB / 1.214 GB, free: 4.34 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.002928/1.054, allocations: 2.443 MB / 1.217 GB, free: 1.871 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.001199/1.055, allocations: 0.5509 MB / 1.217 GB, free: 1.312 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001914/1.057, allocations: 0.6143 MB / 1.218 GB, free: 0.6914 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 9.538e-05/1.057, allocations: 301.1 kB / 1.218 GB, free: 404 kB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003025/1.06, allocations: 1.696 MB / 1.22 GB, free: 14.69 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003885/1.064, allocations: 2.904 MB / 1.222 GB, free: 11.23 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006794/1.071, allocations: 4.589 MB / 1.227 GB, free: 6.176 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.99e-05/1.071, allocations: 8 kB / 1.227 GB, free: 6.168 MB / 0.7917 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01243/1.083, allocations: 6.114 MB / 1.233 GB, free: 40 kB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 9.84e-05/1.083, allocations: 53.84 kB / 1.233 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.027e-05/1.083, allocations: 32 kB / 1.233 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0721/1.155, allocations: 12.02 MB / 1.245 GB, free: 3.91 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00343/1.159, allocations: 0.6552 MB / 1.245 GB, free: 3.254 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009336/1.168, allocations: 5.014 MB / 1.25 GB, free: 14.16 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006592/1.175, allocations: 332.8 kB / 1.251 GB, free: 13.84 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001027/1.176, allocations: 163.9 kB / 1.251 GB, free: 13.68 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006885/1.183, allocations: 2.929 MB / 1.254 GB, free: 10.74 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004323/1.187, allocations: 2.846 MB / 1.256 GB, free: 7.328 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006978/1.194, allocations: 4.45 MB / 1.261 GB, free: 2.414 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.291e-05/1.194, allocations: 12 kB / 1.261 GB, free: 2.402 MB / 0.823 GB Notification: Performance of matching and sorting (n=340) (initialization_lambda0): time 0.01186/1.206, allocations: 5.792 MB / 1.266 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.277e-05/1.206, allocations: 45.7 kB / 1.266 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.977e-05/1.206, allocations: 36 kB / 1.266 GB, free: 12.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07114/1.278, allocations: 11.8 MB / 1.278 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/1.281, allocations: 0.6435 MB / 1.279 GB, free: 24 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/1.294, allocations: 8.031 MB / 1.286 GB, free: 7.691 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005834/1.3, allocations: 332.4 kB / 1.287 GB, free: 7.363 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007934/1.3, allocations: 159.9 kB / 1.287 GB, free: 7.207 MB / 0.8542 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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.001353/1.302, allocations: 367.5 kB / 1.287 GB, free: 6.84 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002023/1.304, allocations: 462.3 kB / 1.288 GB, free: 6.383 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/1.314, allocations: 4.815 MB / 1.292 GB, free: 1.551 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-05/1.314, allocations: 19.94 kB / 1.292 GB, free: 1.531 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/1.314, allocations: 0 / 1.292 GB, free: 1.531 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02015/1.334, allocations: 6.797 MB / 1.299 GB, free: 10.47 MB / 0.8698 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.03677/1.371, allocations: 12.96 MB / 1.312 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/1.371, allocations: 4.688 kB / 1.312 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002638/1.374, allocations: 359.5 kB / 1.312 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07097/1.445, allocations: 12.02 MB / 1.324 GB, free: 1.004 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006845/1.446, allocations: 43.97 kB / 1.324 GB, free: 0.9609 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007198/1.453, allocations: 4.333 MB / 1.328 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.273e-06/1.453, allocations: 4.078 kB / 1.328 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.064/2.517, allocations: 148.5 MB / 1.473 GB, free: 271.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004276/2.521, allocations: 0.988 MB / 1.474 GB, free: 271.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001922/2.523, allocations: 28.62 kB / 1.474 GB, free: 271.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004581/2.528, allocations: 265.1 kB / 1.474 GB, free: 271.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005348/2.528, allocations: 103.2 kB / 1.474 GB, free: 271.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004274/2.529, allocations: 76.73 kB / 1.475 GB, free: 271.5 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.00669/2.535, allocations: 3.316 MB / 1.478 GB, free: 270.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.8e-07/2.535, allocations: 1.188 kB / 1.478 GB, free: 270.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0202/2.556, allocations: 4.539 MB / 1.482 GB, free: 270.3 MB / 0.948 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.002156/2.558, allocations: 0.642 MB / 1.483 GB, free: 270.1 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.016/2.574, allocations: 7.546 MB / 1.49 GB, free: 267.3 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/2.574, allocations: 4.797 kB / 1.49 GB, free: 267.3 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.00549/2.579, allocations: 2.467 MB / 1.493 GB, free: 266 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01494/2.594, allocations: 2.743 MB / 1.495 GB, free: 264.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02641/2.621, allocations: 13.55 MB / 1.509 GB, free: 252 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004822/2.626, allocations: 3.296 MB / 1.512 GB, free: 248.7 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.007176/2.633, allocations: 1.721 MB / 1.513 GB, free: 246.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/2.635, allocations: 361.8 kB / 1.514 GB, free: 246.6 MB / 0.948 GB Notification: Performance of SimCode: time 9.62e-07/2.635, allocations: 0 / 1.514 GB, free: 246.6 MB / 0.948 GB Notification: Performance of Templates: time 0.1723/2.807, allocations: 148.2 MB / 1.658 GB, free: 99.25 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)