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.00129/0.001291, allocations: 107.8 kB / 16.37 MB, free: 6.477 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.001304/0.001304, allocations: 189.8 kB / 17.31 MB, free: 5.824 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.415/1.415, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.782/1.782, allocations: 292.3 MB / 0.5496 GB, free: 17.66 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.001389/0.001389, allocations: 67.91 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.2188, allocations: 114.6 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.4055/0.6243, allocations: 80.86 MB / 0.8637 GB, free: 10.73 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03515/0.6595, allocations: 22.26 MB / 0.8855 GB, free: 10.71 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005113/0.6647, allocations: 112 kB / 0.8856 GB, free: 10.67 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.004338/0.6691, allocations: 1.199 MB / 0.8868 GB, free: 9.68 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.009669/0.6788, allocations: 2.765 MB / 0.8895 GB, free: 7.461 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.01145/0.6903, allocations: 3.804 MB / 0.8932 GB, free: 4.895 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.01993/0.7102, allocations: 15.48 MB / 0.9083 GB, free: 11.91 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01045/0.7207, allocations: 7.21 MB / 0.9153 GB, free: 4.633 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01377/0.7346, allocations: 5.856 MB / 0.921 GB, free: 14.81 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00975/0.7443, allocations: 5.043 MB / 0.926 GB, free: 9.746 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.002394/0.7468, allocations: 0.543 MB / 0.9265 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007126/0.7539, allocations: 1.931 MB / 0.9284 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.003455/0.7574, allocations: 1.62 MB / 0.93 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.00717/0.7646, allocations: 3.274 MB / 0.9332 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.7784, allocations: 9.165 MB / 0.9421 GB, free: 9.164 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.7785, allocations: 0 / 0.9421 GB, free: 9.164 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.104e-06/0.7785, allocations: 0 / 0.9421 GB, free: 9.164 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0002902/0.7788, allocations: 0 / 0.9421 GB, free: 9.164 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.01656/0.7954, allocations: 6.476 MB / 0.9484 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.7954, allocations: 12.73 kB / 0.9485 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004324/0.7998, allocations: 0.8134 MB / 0.9492 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01175/0.8115, allocations: 5.265 MB / 0.9544 GB, free: 12.42 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002425/0.8118, allocations: 254.5 kB / 0.9546 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001116/0.8129, allocations: 348 kB / 0.955 GB, free: 11.83 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0104/0.8234, allocations: 5.733 MB / 0.9606 GB, free: 5.836 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.051e-05/0.8235, allocations: 15.81 kB / 0.9606 GB, free: 5.82 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004772/0.824, allocations: 148 kB / 0.9607 GB, free: 5.676 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.224e-05/0.824, allocations: 83.06 kB / 0.9608 GB, free: 5.598 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009956/0.834, allocations: 5.511 MB / 0.9662 GB, free: 76 kB / 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.0367/0.8707, allocations: 23.66 MB / 0.9893 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005003/0.8758, allocations: 2.732 MB / 0.992 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002913/0.8787, allocations: 1.89 MB / 0.9938 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.8914, allocations: 7.092 MB / 1.001 GB, free: 11.29 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00317/0.8946, allocations: 1.91 MB / 1.003 GB, free: 9.371 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00341/0.8981, allocations: 0.7041 MB / 1.003 GB, free: 8.664 MB / 0.795 GB Notification: Performance of pre-optimization done (n=154): time 9.628e-06/0.8981, allocations: 0 / 1.003 GB, free: 8.664 MB / 0.795 GB Notification: Performance of matching and sorting (n=154): time 0.02756/0.9257, allocations: 8.03 MB / 1.011 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.9258, allocations: 145.8 kB / 1.011 GB, free: 416 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008039/0.9339, allocations: 4.97 MB / 1.016 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0007556/0.9347, allocations: 65.69 kB / 1.016 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.002607/0.9373, allocations: 2.443 MB / 1.019 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.001216/0.9385, allocations: 0.5472 MB / 1.019 GB, free: 8.355 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001123/0.9396, allocations: 0.6727 MB / 1.02 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.9398, allocations: 305.1 kB / 1.02 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002937/0.9427, allocations: 1.734 MB / 1.022 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003953/0.9467, allocations: 2.944 MB / 1.025 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007202/0.9539, allocations: 4.699 MB / 1.029 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.669e-05/0.954, allocations: 8 kB / 1.029 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01278/0.9668, allocations: 6.347 MB / 1.035 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.9669, allocations: 49.7 kB / 1.035 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.661e-05/0.967, allocations: 32 kB / 1.035 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07856/1.046, allocations: 13.54 MB / 1.049 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00286/1.048, allocations: 0.6474 MB / 1.049 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009906/1.058, allocations: 5.485 MB / 1.055 GB, free: 2.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0047/1.063, allocations: 218.5 kB / 1.055 GB, free: 2.516 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006495/1.064, allocations: 195.8 kB / 1.055 GB, free: 2.324 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005572/1.069, allocations: 2.968 MB / 1.058 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003832/1.073, allocations: 2.878 MB / 1.061 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006909/1.08, allocations: 4.57 MB / 1.065 GB, free: 6.863 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.251e-05/1.08, allocations: 12 kB / 1.065 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of matching and sorting (n=340) (initialization_lambda0): time 0.01149/1.092, allocations: 6.026 MB / 1.071 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/1.092, allocations: 49.7 kB / 1.071 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.198e-05/1.092, allocations: 35.98 kB / 1.071 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07662/1.169, allocations: 13.32 MB / 1.084 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003019/1.172, allocations: 0.6357 MB / 1.085 GB, free: 2.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01436/1.186, allocations: 8.92 MB / 1.094 GB, free: 9.5 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004638/1.191, allocations: 216.9 kB / 1.094 GB, free: 9.289 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007123/1.191, allocations: 196 kB / 1.094 GB, free: 9.098 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.001291/1.193, allocations: 368.7 kB / 1.094 GB, free: 8.73 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001871/1.195, allocations: 462.2 kB / 1.095 GB, free: 8.273 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009832/1.204, allocations: 4.534 MB / 1.099 GB, free: 3.738 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.034e-05/1.205, allocations: 20 kB / 1.099 GB, free: 3.719 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/1.205, allocations: 0 / 1.099 GB, free: 3.719 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0105/1.215, allocations: 5.546 MB / 1.105 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02086/1.236, allocations: 9.771 MB / 1.114 GB, free: 4.062 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/1.236, allocations: 2.125 kB / 1.114 GB, free: 4.062 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002269/1.238, allocations: 363.6 kB / 1.115 GB, free: 3.707 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06861/1.307, allocations: 11.72 MB / 1.126 GB, free: 7.969 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005627/1.308, allocations: 47.97 kB / 1.126 GB, free: 7.922 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006492/1.314, allocations: 3.512 MB / 1.129 GB, free: 4.336 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.314, allocations: 4 kB / 1.129 GB, free: 4.332 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3614/1.676, allocations: 8.516 MB / 1.138 GB, free: 294.6 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00278/1.678, allocations: 0.9188 MB / 1.139 GB, free: 294.5 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001297/1.68, allocations: 30.28 kB / 1.139 GB, free: 294.5 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003215/1.683, allocations: 136.8 kB / 1.139 GB, free: 294.5 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003417/1.683, allocations: 116.5 kB / 1.139 GB, free: 294.5 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002631/1.684, allocations: 85.22 kB / 1.139 GB, free: 294.5 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.00536/1.689, allocations: 3.401 MB / 1.142 GB, free: 294.3 MB / 0.92 GB Notification: Performance of sort global known variables: time 4.1e-07/1.689, allocations: 0 / 1.142 GB, free: 294.3 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.009474/1.698, allocations: 2.667 MB / 1.145 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.001948/1.7, allocations: 0.5643 MB / 1.145 GB, free: 294 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.01956/1.72, allocations: 7.505 MB / 1.153 GB, free: 291.4 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-05/1.72, allocations: 5.422 kB / 1.153 GB, free: 291.4 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.00609/1.726, allocations: 2.246 MB / 1.155 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.01623/1.742, allocations: 2.74 MB / 1.158 GB, free: 290.1 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02415/1.767, allocations: 9.977 MB / 1.167 GB, free: 286.2 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005505/1.772, allocations: 3.209 MB / 1.171 GB, free: 285.1 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002149/1.774, allocations: 373.6 kB / 1.171 GB, free: 285.1 MB / 0.92 GB Notification: Performance of SimCode: time 1.784e-06/1.774, allocations: 0 / 1.171 GB, free: 285.1 MB / 0.92 GB Notification: Performance of Templates: time 0.1914/1.966, allocations: 162.9 MB / 1.33 GB, free: 144.1 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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)