Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8503/0.8503, allocations: 143.4 MB / 158.3 MB, free: 5.797 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 177 kB / 191.5 MB, free: 5.766 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.635/1.635, allocations: 223.2 MB / 447.7 MB, free: 6.547 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 96.25 kB / 0.5188 GB, free: 2.891 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00195/0.00195, allocations: 278 kB / 0.6005 GB, free: 48.98 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006097/0.0006097, allocations: 20 kB / 0.6929 GB, free: 2.32 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5135/0.5141, allocations: 82.78 MB / 0.7737 GB, free: 26.24 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8799/1.394, allocations: 360.4 MB / 1.126 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/1.395, allocations: 92.58 kB / 1.126 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.9995/2.394, allocations: 259.8 MB / 1.379 GB, free: 77.33 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.565e-06/2.394, allocations: 0 / 1.379 GB, free: 77.33 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.953e-05/2.394, allocations: 16 kB / 1.379 GB, free: 77.31 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002867/2.397, allocations: 1.023 MB / 1.38 GB, free: 76.23 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/2.397, allocations: 11.97 kB / 1.38 GB, free: 76.22 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/2.398, allocations: 179 kB / 1.381 GB, free: 76.05 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02465/2.423, allocations: 12.09 MB / 1.392 GB, free: 63.79 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003351/2.423, allocations: 96.94 kB / 1.393 GB, free: 63.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/2.423, allocations: 40 kB / 1.393 GB, free: 63.66 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/2.425, allocations: 0.5085 MB / 1.393 GB, free: 63.12 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/2.425, allocations: 3.984 kB / 1.393 GB, free: 63.11 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-05/2.425, allocations: 20 kB / 1.393 GB, free: 63.09 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-05/2.425, allocations: 12.66 kB / 1.393 GB, free: 63.08 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009819/2.426, allocations: 422.6 kB / 1.394 GB, free: 62.67 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.003464/2.429, allocations: 2.264 MB / 1.396 GB, free: 60.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009693/2.43, allocations: 390 kB / 1.396 GB, free: 59.81 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003148/2.43, allocations: 348.6 kB / 1.396 GB, free: 59.39 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006174/2.431, allocations: 308 kB / 1.397 GB, free: 59.07 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 4.047e-06/2.431, allocations: 3.938 kB / 1.397 GB, free: 59.07 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.002388/2.434, allocations: 0.9618 MB / 1.398 GB, free: 58.06 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/2.434, allocations: 85.11 kB / 1.398 GB, free: 57.96 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006495/2.434, allocations: 434 kB / 1.398 GB, free: 57.53 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.301e-05/2.434, allocations: 37.64 kB / 1.398 GB, free: 57.48 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/2.435, allocations: 276.4 kB / 1.398 GB, free: 57.21 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/2.435, allocations: 110.5 kB / 1.399 GB, free: 57.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.193e-05/2.435, allocations: 4 kB / 1.399 GB, free: 57.09 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001609/2.435, allocations: 358.8 kB / 1.399 GB, free: 56.73 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004255/2.435, allocations: 183.9 kB / 1.399 GB, free: 56.55 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004862/2.436, allocations: 283 kB / 1.399 GB, free: 56.24 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/2.436, allocations: 217.6 kB / 1.4 GB, free: 56.02 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/2.436, allocations: 4 kB / 1.4 GB, free: 56.02 MB / 0.698 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001407/2.438, allocations: 0.6364 MB / 1.4 GB, free: 55.36 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002809/2.438, allocations: 0.6511 MB / 1.401 GB, free: 54.66 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/2.438, allocations: 0 / 1.401 GB, free: 54.66 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003068/2.438, allocations: 48.83 kB / 1.401 GB, free: 54.61 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003993/2.439, allocations: 95.86 kB / 1.401 GB, free: 54.52 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000476/2.439, allocations: 0.5913 MB / 1.402 GB, free: 53.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007556/2.44, allocations: 87.69 kB / 1.402 GB, free: 53.81 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/2.44, allocations: 19.98 kB / 1.402 GB, free: 53.79 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/2.44, allocations: 4 kB / 1.402 GB, free: 53.79 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001228/2.441, allocations: 0.576 MB / 1.402 GB, free: 53.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/2.441, allocations: 4 kB / 1.402 GB, free: 53.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/2.442, allocations: 44.83 kB / 1.402 GB, free: 53.15 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/2.442, allocations: 88.03 kB / 1.402 GB, free: 53.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/2.443, allocations: 1.627 MB / 1.404 GB, free: 51.29 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006311/2.444, allocations: 79.64 kB / 1.404 GB, free: 51.21 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.895e-05/2.444, allocations: 23.98 kB / 1.404 GB, free: 51.19 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004473/2.444, allocations: 305.1 kB / 1.404 GB, free: 50.88 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/2.445, allocations: 63.27 kB / 1.404 GB, free: 50.82 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/2.446, allocations: 0.6705 MB / 1.405 GB, free: 50.12 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/2.446, allocations: 7.984 kB / 1.405 GB, free: 50.12 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/2.446, allocations: 0 / 1.405 GB, free: 50.12 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0011/2.447, allocations: 0.825 MB / 1.406 GB, free: 49.21 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002267/2.449, allocations: 1.326 MB / 1.407 GB, free: 47.81 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/2.449, allocations: 3.984 kB / 1.407 GB, free: 47.81 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/2.45, allocations: 63.95 kB / 1.407 GB, free: 47.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001384/2.45, allocations: 56.78 kB / 1.407 GB, free: 47.69 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/2.45, allocations: 12 kB / 1.407 GB, free: 47.68 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002597/2.45, allocations: 0.572 MB / 1.408 GB, free: 47.08 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/2.45, allocations: 7.984 kB / 1.408 GB, free: 47.07 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001741/2.452, allocations: 1.048 MB / 1.409 GB, free: 45.97 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/2.452, allocations: 184.3 kB / 1.409 GB, free: 45.77 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/2.452, allocations: 8 kB / 1.409 GB, free: 45.76 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006132/2.453, allocations: 71.84 kB / 1.409 GB, free: 45.69 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/2.453, allocations: 31.86 kB / 1.409 GB, free: 45.66 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.147e-05/2.453, allocations: 23.98 kB / 1.409 GB, free: 45.64 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000385/2.454, allocations: 342.8 kB / 1.41 GB, free: 45.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/2.454, allocations: 0 / 1.41 GB, free: 45.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001448/2.455, allocations: 379.5 kB / 1.41 GB, free: 44.93 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009799/2.456, allocations: 430.4 kB / 1.41 GB, free: 44.51 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002028/2.458, allocations: 0.9906 MB / 1.411 GB, free: 43.48 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/2.458, allocations: 0 / 1.411 GB, free: 43.48 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005624/2.459, allocations: 331.4 kB / 1.412 GB, free: 43.15 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/2.46, allocations: 240.8 kB / 1.412 GB, free: 42.92 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/2.462, allocations: 1.335 MB / 1.413 GB, free: 41.54 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/2.463, allocations: 0.8978 MB / 1.414 GB, free: 40.62 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005899/2.463, allocations: 124.3 kB / 1.414 GB, free: 40.49 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/2.463, allocations: 47.42 kB / 1.414 GB, free: 40.45 MB / 0.698 GB Notification: Performance of SimCode: time 8.21e-07/2.463, allocations: 0 / 1.414 GB, free: 40.45 MB / 0.698 GB Notification: Performance of Templates: time 0.02206/2.485, allocations: 11.98 MB / 1.426 GB, free: 28.58 MB / 0.698 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)