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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 109.2 kB / 16.29 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 187.3 kB / 17.22 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.843/1.843, allocations: 292.3 MB / 0.5495 GB, free: 17.4 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 75.88 kB / 0.6722 GB, free: 6.527 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2179, allocations: 114.6 MB / 0.7841 GB, free: 3.859 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.4771/0.695, allocations: 80.85 MB / 0.863 GB, free: 10.98 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.04475/0.7398, allocations: 22.27 MB / 0.8848 GB, free: 11.05 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007443/0.7473, allocations: 108.2 kB / 0.8849 GB, free: 11 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.005514/0.7529, allocations: 1.203 MB / 0.886 GB, free: 10.01 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.01193/0.7649, allocations: 2.762 MB / 0.8887 GB, free: 7.793 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.01513/0.7801, allocations: 3.804 MB / 0.8925 GB, free: 5.227 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.02364/0.8037, allocations: 15.48 MB / 0.9076 GB, free: 12.32 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01113/0.8149, allocations: 7.199 MB / 0.9146 GB, free: 5.137 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01848/0.8334, allocations: 5.861 MB / 0.9203 GB, free: 15.31 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01214/0.8456, allocations: 5.039 MB / 0.9252 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.002628/0.8483, allocations: 0.5391 MB / 0.9258 GB, free: 9.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008417/0.8567, allocations: 1.935 MB / 0.9277 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.003806/0.8606, allocations: 1.616 MB / 0.9292 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.009267/0.8699, allocations: 3.278 MB / 0.9324 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01656/0.8865, allocations: 9.157 MB / 0.9414 GB, free: 9.676 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.8865, allocations: 0 / 0.9414 GB, free: 9.676 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.164e-06/0.8865, allocations: 0 / 0.9414 GB, free: 9.676 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0003715/0.8869, allocations: 4 kB / 0.9414 GB, free: 9.672 MB / 0.7325 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.02513/0.9121, allocations: 6.473 MB / 0.9477 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.9121, allocations: 12.69 kB / 0.9477 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005113/0.9173, allocations: 0.8206 MB / 0.9485 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.9297, allocations: 5.024 MB / 0.9534 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002593/0.93, allocations: 259.1 kB / 0.9537 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0012/0.9312, allocations: 344 kB / 0.954 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01164/0.9429, allocations: 5.726 MB / 0.9596 GB, free: 6.582 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.509e-05/0.943, allocations: 19.8 kB / 0.9596 GB, free: 6.562 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005719/0.9436, allocations: 144 kB / 0.9598 GB, free: 6.422 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.489e-05/0.9437, allocations: 84 kB / 0.9598 GB, free: 6.34 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/0.954, allocations: 5.515 MB / 0.9652 GB, free: 0.8125 MB / 0.7481 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.04479/0.9988, allocations: 23.66 MB / 0.9883 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005799/1.005, allocations: 2.738 MB / 0.991 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00324/1.008, allocations: 1.897 MB / 0.9928 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01545/1.023, allocations: 7.073 MB / 0.9998 GB, free: 12.05 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003319/1.027, allocations: 1.914 MB / 1.002 GB, free: 10.12 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003622/1.03, allocations: 0.7079 MB / 1.002 GB, free: 9.41 MB / 0.795 GB Notification: Performance of pre-optimization done (n=154): time 1.125e-05/1.03, allocations: 3.938 kB / 1.002 GB, free: 9.406 MB / 0.795 GB Notification: Performance of matching and sorting (n=154): time 0.02522/1.056, allocations: 8.019 MB / 1.01 GB, free: 1.332 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/1.056, allocations: 153.8 kB / 1.01 GB, free: 1.152 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01109/1.067, allocations: 4.97 MB / 1.015 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0009728/1.068, allocations: 65.7 kB / 1.015 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.003383/1.071, allocations: 2.443 MB / 1.018 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.001585/1.073, allocations: 0.5433 MB / 1.018 GB, free: 9.105 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003117/1.076, allocations: 0.6727 MB / 1.019 GB, free: 8.426 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001389/1.076, allocations: 305.1 kB / 1.019 GB, free: 8.125 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003596/1.08, allocations: 1.727 MB / 1.021 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004567/1.085, allocations: 2.952 MB / 1.024 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007655/1.092, allocations: 4.702 MB / 1.028 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.732e-05/1.092, allocations: 8 kB / 1.028 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01446/1.107, allocations: 6.342 MB / 1.034 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.443e-05/1.107, allocations: 49.7 kB / 1.034 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.32e-05/1.107, allocations: 40.83 kB / 1.035 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07351/1.181, allocations: 13.54 MB / 1.048 GB, free: 9.688 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003076/1.184, allocations: 0.6474 MB / 1.048 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/1.194, allocations: 5.485 MB / 1.054 GB, free: 3.473 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005068/1.199, allocations: 216.7 kB / 1.054 GB, free: 3.262 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008303/1.2, allocations: 195.8 kB / 1.054 GB, free: 3.07 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006664/1.207, allocations: 2.968 MB / 1.057 GB, free: 96 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004077/1.211, allocations: 2.886 MB / 1.06 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007186/1.218, allocations: 4.574 MB / 1.064 GB, free: 7.594 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.395e-05/1.218, allocations: 8 kB / 1.064 GB, free: 7.586 MB / 0.8575 GB Notification: Performance of matching and sorting (n=340) (initialization_lambda0): time 0.01266/1.231, allocations: 6.03 MB / 1.07 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.736e-05/1.231, allocations: 53.69 kB / 1.07 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-05/1.231, allocations: 39.25 kB / 1.07 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07122/1.302, allocations: 13.3 MB / 1.083 GB, free: 4.113 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/1.305, allocations: 0.6396 MB / 1.084 GB, free: 3.473 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01413/1.319, allocations: 8.91 MB / 1.093 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004875/1.324, allocations: 223.1 kB / 1.093 GB, free: 10.03 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007969/1.325, allocations: 191.8 kB / 1.093 GB, free: 9.844 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (285): * Single equations (assignments): 278 * 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,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.00132/1.327, allocations: 375.1 kB / 1.093 GB, free: 9.473 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001914/1.329, allocations: 466.3 kB / 1.094 GB, free: 9.012 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01022/1.339, allocations: 4.546 MB / 1.098 GB, free: 4.465 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-05/1.339, allocations: 16 kB / 1.098 GB, free: 4.449 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/1.339, allocations: 3.984 kB / 1.098 GB, free: 4.445 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009997/1.349, allocations: 5.549 MB / 1.104 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02035/1.369, allocations: 9.756 MB / 1.113 GB, free: 4.801 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/1.369, allocations: 0 / 1.113 GB, free: 4.801 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002114/1.371, allocations: 367.6 kB / 1.114 GB, free: 4.441 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06452/1.436, allocations: 11.72 MB / 1.125 GB, free: 8.711 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007158/1.437, allocations: 51.91 kB / 1.125 GB, free: 8.66 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006494/1.443, allocations: 3.509 MB / 1.128 GB, free: 5.074 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.443, allocations: 7.938 kB / 1.128 GB, free: 5.066 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5149/1.958, allocations: 8.518 MB / 1.137 GB, free: 294.5 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002845/1.961, allocations: 0.9126 MB / 1.138 GB, free: 294.4 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001109/1.962, allocations: 39.88 kB / 1.138 GB, free: 294.4 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00281/1.965, allocations: 134.3 kB / 1.138 GB, free: 294.4 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/1.965, allocations: 114.1 kB / 1.138 GB, free: 294.4 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002509/1.966, allocations: 86.03 kB / 1.138 GB, free: 294.4 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.005228/1.971, allocations: 3.401 MB / 1.141 GB, free: 294.2 MB / 0.92 GB Notification: Performance of sort global known variables: time 4.1e-07/1.971, allocations: 0 / 1.141 GB, free: 294.2 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.009889/1.981, allocations: 2.667 MB / 1.144 GB, free: 294.2 MB / 0.92 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 (134): * Single equations (assignments): 125 * 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 {(11,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00183/1.983, allocations: 0.5724 MB / 1.145 GB, free: 294.1 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.01877/2.001, allocations: 7.501 MB / 1.152 GB, free: 291.5 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/2.001, allocations: 6.031 kB / 1.152 GB, free: 291.5 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.005253/2.007, allocations: 2.251 MB / 1.154 GB, free: 290.6 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01344/2.02, allocations: 2.747 MB / 1.157 GB, free: 290.1 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01974/2.04, allocations: 9.889 MB / 1.166 GB, free: 286.3 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00448/2.044, allocations: 3.229 MB / 1.17 GB, free: 285.2 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.007425/2.052, allocations: 1.674 MB / 1.171 GB, free: 285 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001768/2.054, allocations: 352.9 kB / 1.172 GB, free: 285 MB / 0.92 GB Notification: Performance of SimCode: time 1.313e-06/2.054, allocations: 1.281 kB / 1.172 GB, free: 285 MB / 0.92 GB Notification: Performance of Templates: time 0.1608/2.215, allocations: 116.3 MB / 1.285 GB, free: 190.9 MB / 0.92 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)