Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) 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 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.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7968/0.7968, allocations: 140.1 MB / 156 MB, free: 5.18 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002029/0.002029, allocations: 179.8 kB / 188.5 MB, free: 15.85 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.4 MB / 426.3 MB, free: 8.488 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008808/0.0008809, allocations: 94.34 kB / 0.4945 GB, free: 8.426 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.00174/0.00174, allocations: 260.2 kB / 0.5728 GB, free: 66.25 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004803/0.0004804, allocations: 16 kB / 0.662 GB, free: 6.828 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4426/0.4431, allocations: 79.31 MB / 0.7395 GB, free: 46.37 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.222/4.665, allocations: 2.284 GB / 3.024 GB, free: 46.48 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/4.665, allocations: 87.95 kB / 3.024 GB, free: 46.39 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 2.062/6.727, allocations: 0.648 GB / 3.672 GB, free: 107.5 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.114e-06/6.727, allocations: 0 / 3.672 GB, free: 107.5 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001624/6.727, allocations: 33.67 kB / 3.672 GB, free: 107.5 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.004339/6.731, allocations: 1.567 MB / 3.673 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/6.731, allocations: 7.156 kB / 3.673 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002785/6.734, allocations: 0.5333 MB / 3.674 GB, free: 106.7 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02214/6.756, allocations: 12.34 MB / 3.686 GB, free: 106 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/6.758, allocations: 318.6 kB / 3.686 GB, free: 106 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004014/6.758, allocations: 79.5 kB / 3.686 GB, free: 106 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003929/6.762, allocations: 1.171 MB / 3.687 GB, free: 105.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/6.762, allocations: 0 / 3.687 GB, free: 105.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001601/6.762, allocations: 25.66 kB / 3.687 GB, free: 105.8 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.941e-05/6.762, allocations: 35.31 kB / 3.687 GB, free: 105.8 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003281/6.766, allocations: 1.232 MB / 3.689 GB, free: 105.8 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006476/6.772, allocations: 3.276 MB / 3.692 GB, free: 104.9 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/6.774, allocations: 0.7209 MB / 3.692 GB, free: 104.9 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007497/6.774, allocations: 432.6 kB / 3.693 GB, free: 104.9 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007456/6.775, allocations: 1.032 MB / 3.694 GB, free: 103.8 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000908/6.776, allocations: 0.5372 MB / 3.694 GB, free: 103.7 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=59): time 3.487e-06/6.776, allocations: 3.031 kB / 3.694 GB, free: 103.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=59): time 0.002857/6.779, allocations: 1.284 MB / 3.696 GB, free: 103.5 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/6.779, allocations: 165.6 kB / 3.696 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001918/6.781, allocations: 1.207 MB / 3.697 GB, free: 103.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001253/6.781, allocations: 42.92 kB / 3.697 GB, free: 103.2 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003129/6.782, allocations: 435.1 kB / 3.697 GB, free: 103 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/6.782, allocations: 203.1 kB / 3.698 GB, free: 102.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/6.782, allocations: 13.06 kB / 3.698 GB, free: 102.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.961e-05/6.782, allocations: 330.7 kB / 3.698 GB, free: 102.6 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/6.783, allocations: 0.489 MB / 3.698 GB, free: 102.6 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/6.784, allocations: 0.6923 MB / 3.699 GB, free: 102.4 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001918/6.786, allocations: 1.019 MB / 3.7 GB, free: 102.3 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/6.786, allocations: 0 / 3.7 GB, free: 102.3 MB / 0.6823 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003026/6.789, allocations: 1.337 MB / 3.701 GB, free: 102.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/6.789, allocations: 35.72 kB / 3.701 GB, free: 102.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/6.789, allocations: 6.625 kB / 3.701 GB, free: 102.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/6.789, allocations: 7.344 kB / 3.701 GB, free: 102.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009559/6.79, allocations: 222.1 kB / 3.702 GB, free: 102.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/6.79, allocations: 7.688 kB / 3.702 GB, free: 102.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/6.792, allocations: 312.6 kB / 3.702 GB, free: 102.1 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/6.792, allocations: 49.55 kB / 3.702 GB, free: 102.1 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (71): * Single equations (assignments): 70 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006282/6.793, allocations: 331.3 kB / 3.702 GB, free: 101.9 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002747/6.793, allocations: 114.9 kB / 3.702 GB, free: 101.9 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/6.795, allocations: 1.055 MB / 3.703 GB, free: 101.8 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/6.795, allocations: 5.969 kB / 3.703 GB, free: 101.8 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/6.795, allocations: 7.062 kB / 3.703 GB, free: 101.8 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/6.795, allocations: 3.75 kB / 3.703 GB, free: 101.8 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00482/6.8, allocations: 3.412 MB / 3.707 GB, free: 100.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/6.8, allocations: 6.5 kB / 3.707 GB, free: 100.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005752/6.801, allocations: 134.5 kB / 3.707 GB, free: 100.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-05/6.801, allocations: 7.719 kB / 3.707 GB, free: 100.9 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-05/6.801, allocations: 33.28 kB / 3.707 GB, free: 100.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.08e-05/6.801, allocations: 15.16 kB / 3.707 GB, free: 100.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/6.801, allocations: 10.78 kB / 3.707 GB, free: 100.9 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/6.803, allocations: 1.421 MB / 3.708 GB, free: 100.3 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005813/6.804, allocations: 336.1 kB / 3.709 GB, free: 100.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000256/6.804, allocations: 29.09 kB / 3.709 GB, free: 100.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/6.805, allocations: 129.2 kB / 3.709 GB, free: 100.2 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/6.805, allocations: 59.31 kB / 3.709 GB, free: 100.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/6.805, allocations: 47.53 kB / 3.709 GB, free: 100.2 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001662/6.807, allocations: 0.8765 MB / 3.71 GB, free: 100.1 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.2e-07/6.807, allocations: 0 / 3.71 GB, free: 100.1 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001981/6.809, allocations: 454.3 kB / 3.71 GB, free: 100 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 0 () * 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 (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002452/6.812, allocations: 1.618 MB / 3.712 GB, free: 99.58 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002307/6.814, allocations: 1.078 MB / 3.713 GB, free: 99.5 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/6.814, allocations: 3.875 kB / 3.713 GB, free: 99.5 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0008838/6.815, allocations: 0.528 MB / 3.713 GB, free: 99.44 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003954/6.819, allocations: 0.5347 MB / 3.714 GB, free: 99.43 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/6.823, allocations: 2.298 MB / 3.716 GB, free: 98.36 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005714/6.823, allocations: 1.072 MB / 3.717 GB, free: 97.66 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.00132/6.824, allocations: 293.3 kB / 3.718 GB, free: 97.64 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/6.825, allocations: 86.89 kB / 3.718 GB, free: 97.64 MB / 0.6823 GB Notification: Performance of SimCode: time 6.81e-07/6.825, allocations: 0 / 3.718 GB, free: 97.64 MB / 0.6823 GB Notification: Performance of Templates: time 0.0501/6.875, allocations: 37.67 MB / 3.754 GB, free: 94.92 MB / 0.6823 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)