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.001112/0.001113, allocations: 107.2 kB / 15.99 MB, free: 6.348 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.0011/0.0011, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.47/1.47, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.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.656/1.656, allocations: 292.3 MB / 0.5492 GB, free: 13.62 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.001324/0.001324, allocations: 63.64 kB / 0.6716 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2178, allocations: 114.6 MB / 0.7835 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07154/0.2894, allocations: 80.13 MB / 0.8618 GB, free: 13.51 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.02969/0.3191, allocations: 22.22 MB / 0.8835 GB, free: 7.242 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003705/0.3229, allocations: 95.31 kB / 0.8835 GB, free: 7.148 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.003445/0.3264, allocations: 1.049 MB / 0.8846 GB, free: 6.094 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.00728/0.3337, allocations: 2.573 MB / 0.8871 GB, free: 3.512 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.008267/0.342, allocations: 3.462 MB / 0.8905 GB, free: 72 kB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.01551/0.3575, allocations: 15.55 MB / 0.9057 GB, free: 480 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008888/0.3664, allocations: 7.155 MB / 0.9126 GB, free: 9.219 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01271/0.3791, allocations: 5.923 MB / 0.9184 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.4093/0.7884, allocations: 5.189 MB / 0.9235 GB, free: 28.77 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.002969/0.7915, allocations: 0.5371 MB / 0.924 GB, free: 28.77 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007355/0.7988, allocations: 1.926 MB / 0.9259 GB, free: 28.77 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.003395/0.8023, allocations: 1.628 MB / 0.9275 GB, free: 28.77 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.006603/0.8089, allocations: 3.284 MB / 0.9307 GB, free: 28.77 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.8194, allocations: 7.142 MB / 0.9377 GB, free: 28.49 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.8194, allocations: 3.938 kB / 0.9377 GB, free: 28.49 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.654e-06/0.8194, allocations: 3.156 kB / 0.9377 GB, free: 28.49 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0003265/0.8198, allocations: 1 kB / 0.9377 GB, free: 28.49 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.02195/0.8417, allocations: 6.472 MB / 0.944 GB, free: 25.89 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/0.8418, allocations: 9.312 kB / 0.944 GB, free: 25.89 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005519/0.8473, allocations: 0.8209 MB / 0.9448 GB, free: 25.59 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01209/0.8594, allocations: 5.202 MB / 0.9499 GB, free: 24.64 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002755/0.8598, allocations: 261 kB / 0.9501 GB, free: 24.63 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001445/0.8612, allocations: 341.9 kB / 0.9505 GB, free: 24.63 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01261/0.8738, allocations: 5.726 MB / 0.9561 GB, free: 23.93 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-05/0.874, allocations: 15.94 kB / 0.9561 GB, free: 23.93 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000772/0.8748, allocations: 142.2 kB / 0.9562 GB, free: 23.93 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001044/0.8749, allocations: 84.28 kB / 0.9563 GB, free: 23.93 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/0.8856, allocations: 5.522 MB / 0.9617 GB, free: 23.9 MB / 0.7325 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.03561/0.9212, allocations: 23.74 MB / 0.9849 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004671/0.926, allocations: 2.737 MB / 0.9875 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002593/0.9286, allocations: 1.892 MB / 0.9894 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01449/0.9431, allocations: 7.032 MB / 0.9963 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003255/0.9464, allocations: 1.92 MB / 0.9981 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005306/0.9517, allocations: 1.043 MB / 0.9991 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=155): time 1.439e-05/0.9518, allocations: 0 / 0.9991 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of matching and sorting (n=155): time 0.02527/0.9771, allocations: 8.07 MB / 1.007 GB, free: 376 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.9772, allocations: 149.4 kB / 1.007 GB, free: 212 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01019/0.9874, allocations: 4.843 MB / 1.012 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0008964/0.9883, allocations: 68.8 kB / 1.012 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.003043/0.9914, allocations: 2.442 MB / 1.014 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.001472/0.9929, allocations: 0.5522 MB / 1.015 GB, free: 11.15 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002219/0.9951, allocations: 0.683 MB / 1.016 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.9952, allocations: 301.1 kB / 1.016 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003142/0.9984, allocations: 1.737 MB / 1.018 GB, free: 9.551 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004043/1.002, allocations: 2.948 MB / 1.02 GB, free: 7.035 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007101/1.01, allocations: 4.709 MB / 1.025 GB, free: 3.812 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.98e-05/1.01, allocations: 13.66 kB / 1.025 GB, free: 3.812 MB / 0.7481 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01552/1.025, allocations: 6.495 MB / 1.031 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 8.509e-05/1.025, allocations: 45.7 kB / 1.031 GB, free: 13.49 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.172e-05/1.025, allocations: 37.62 kB / 1.031 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07641/1.102, allocations: 13.65 MB / 1.045 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003054/1.105, allocations: 0.6459 MB / 1.045 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/1.115, allocations: 5.526 MB / 1.051 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005598/1.121, allocations: 331.7 kB / 1.051 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008869/1.122, allocations: 199 kB / 1.051 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006516/1.129, allocations: 2.972 MB / 1.054 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004135/1.133, allocations: 2.886 MB / 1.057 GB, free: 2.781 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006967/1.14, allocations: 4.58 MB / 1.062 GB, free: 13.88 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.454e-05/1.14, allocations: 8 kB / 1.062 GB, free: 13.87 MB / 0.795 GB Notification: Performance of matching and sorting (n=340) (initialization_lambda0): time 0.01643/1.156, allocations: 6.704 MB / 1.068 GB, free: 7.352 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.764e-05/1.156, allocations: 45.7 kB / 1.068 GB, free: 7.301 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.78e-05/1.156, allocations: 36 kB / 1.068 GB, free: 7.266 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07493/1.231, allocations: 13.42 MB / 1.081 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003173/1.235, allocations: 0.6454 MB / 1.082 GB, free: 9.324 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/1.25, allocations: 8.965 MB / 1.091 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005862/1.256, allocations: 332.4 kB / 1.091 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008128/1.257, allocations: 187.8 kB / 1.091 GB, free: 15.58 MB / 0.8262 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 (284): * Single equations (assignments): 277 * 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 {(12,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001419/1.258, allocations: 375.2 kB / 1.091 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001905/1.26, allocations: 464.4 kB / 1.092 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/1.273, allocations: 5.022 MB / 1.097 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.873e-05/1.273, allocations: 24.59 kB / 1.097 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.273, allocations: 0 / 1.097 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008482/1.282, allocations: 5.214 MB / 1.102 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03282/1.315, allocations: 11.04 MB / 1.113 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-05/1.315, allocations: 4 kB / 1.113 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002602/1.317, allocations: 368 kB / 1.113 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06713/1.384, allocations: 11.77 MB / 1.125 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000686/1.385, allocations: 55.95 kB / 1.125 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006317/1.392, allocations: 3.544 MB / 1.128 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/1.392, allocations: 7.469 kB / 1.128 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01364/1.405, allocations: 7.359 MB / 1.135 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003896/1.409, allocations: 0.913 MB / 1.136 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002147/1.411, allocations: 32 kB / 1.136 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004818/1.416, allocations: 255.2 kB / 1.136 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000553/1.417, allocations: 112.8 kB / 1.137 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004807/1.417, allocations: 83.94 kB / 1.137 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.007777/1.425, allocations: 3.321 MB / 1.14 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.81e-07/1.425, allocations: 0 / 1.14 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.01415/1.439, allocations: 2.698 MB / 1.143 GB, free: 10.82 MB / 0.8731 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 (136): * Single equations (assignments): 127 * 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 {(12,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002507/1.442, allocations: 0.5526 MB / 1.143 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.02376/1.466, allocations: 8.586 MB / 1.151 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/1.466, allocations: 0.7188 kB / 1.151 GB, free: 1.895 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.006068/1.472, allocations: 2.296 MB / 1.154 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01617/1.488, allocations: 2.762 MB / 1.156 GB, free: 12.95 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02524/1.513, allocations: 11.81 MB / 1.168 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004881/1.518, allocations: 3.208 MB / 1.171 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00213/1.52, allocations: 371.3 kB / 1.171 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of SimCode: time 1.042e-06/1.52, allocations: 0 / 1.171 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of Templates: time 0.6516/2.172, allocations: 162.4 MB / 1.33 GB, free: 388.9 MB / 1.014 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)