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 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.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.8432/0.8432, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 186.5 kB / 187.3 MB, free: 11.89 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.622/1.622, allocations: 221.3 MB / 441.4 MB, free: 4.602 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.001016/0.001016, allocations: 97.42 kB / 0.5124 GB, free: 24.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001968/0.001968, allocations: 267.4 kB / 0.5939 GB, free: 7.969 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.025e-05/5.027e-05, allocations: 7.938 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6979/0.698, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.062/6.76, allocations: 2.115 GB / 2.879 GB, free: 157.1 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/6.761, allocations: 83.2 kB / 2.879 GB, free: 157 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.281/9.041, allocations: 0.6602 GB / 3.54 GB, free: 30.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.352e-06/9.041, allocations: 0 / 3.54 GB, free: 30.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001028/9.042, allocations: 47.97 kB / 3.54 GB, free: 30.26 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.004631/9.046, allocations: 1.478 MB / 3.541 GB, free: 28.72 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/9.046, allocations: 8.031 kB / 3.541 GB, free: 28.71 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002859/9.049, allocations: 0.5316 MB / 3.542 GB, free: 28.18 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02391/9.073, allocations: 13.16 MB / 3.554 GB, free: 14.85 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001154/9.074, allocations: 317.2 kB / 3.555 GB, free: 14.54 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002582/9.074, allocations: 71.89 kB / 3.555 GB, free: 14.47 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/9.076, allocations: 0.9795 MB / 3.556 GB, free: 13.45 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/9.076, allocations: 0 / 3.556 GB, free: 13.45 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.213e-05/9.076, allocations: 20 kB / 3.556 GB, free: 13.43 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-05/9.076, allocations: 37.3 kB / 3.556 GB, free: 13.39 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/9.077, allocations: 0.7939 MB / 3.557 GB, free: 12.6 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005637/9.083, allocations: 3.312 MB / 3.56 GB, free: 9.207 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/9.084, allocations: 0.5848 MB / 3.56 GB, free: 8.613 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004123/9.084, allocations: 367.8 kB / 3.561 GB, free: 8.254 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006967/9.085, allocations: 1.033 MB / 3.562 GB, free: 7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005988/9.086, allocations: 482.8 kB / 3.562 GB, free: 6.504 MB / 0.698 GB Notification: Performance of pre-optimization done (n=57): time 2.645e-06/9.086, allocations: 0 / 3.562 GB, free: 6.504 MB / 0.698 GB Notification: Performance of matching and sorting (n=57): time 0.001574/9.087, allocations: 0.847 MB / 3.563 GB, free: 5.648 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/9.087, allocations: 144.8 kB / 3.563 GB, free: 5.477 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/9.088, allocations: 0.9492 MB / 3.564 GB, free: 4.512 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.75e-05/9.088, allocations: 45.7 kB / 3.564 GB, free: 4.461 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/9.089, allocations: 433.8 kB / 3.565 GB, free: 4.035 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/9.089, allocations: 189.3 kB / 3.565 GB, free: 3.848 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.269e-05/9.089, allocations: 12 kB / 3.565 GB, free: 3.836 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.84e-05/9.089, allocations: 330 kB / 3.565 GB, free: 3.508 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004131/9.089, allocations: 313.2 kB / 3.565 GB, free: 3.203 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005372/9.09, allocations: 0.5168 MB / 3.566 GB, free: 2.602 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004533/9.09, allocations: 387.1 kB / 3.566 GB, free: 2.215 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/9.09, allocations: 4 kB / 3.566 GB, free: 2.211 MB / 0.698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001331/9.092, allocations: 0.965 MB / 3.567 GB, free: 1.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/9.092, allocations: 37.69 kB / 3.567 GB, free: 1.188 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/9.092, allocations: 7.953 kB / 3.567 GB, free: 1.18 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/9.092, allocations: 4 kB / 3.567 GB, free: 1.176 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009496/9.093, allocations: 215.7 kB / 3.568 GB, free: 0.9648 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/9.093, allocations: 8 kB / 3.568 GB, free: 0.957 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/9.094, allocations: 306.9 kB / 3.568 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/9.094, allocations: 47.97 kB / 3.568 GB, free: 0.6094 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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.0002029/9.095, allocations: 190.2 kB / 3.568 GB, free: 424 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/9.095, allocations: 114.6 kB / 3.568 GB, free: 308 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/9.096, allocations: 0.944 MB / 3.569 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/9.096, allocations: 11.95 kB / 3.569 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/9.096, allocations: 0 / 3.569 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/9.097, allocations: 3.984 kB / 3.569 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004555/9.101, allocations: 3.145 MB / 3.572 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/9.101, allocations: 8 kB / 3.572 GB, free: 12.03 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006208/9.102, allocations: 131.8 kB / 3.572 GB, free: 11.9 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.297e-05/9.102, allocations: 12.19 kB / 3.572 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.371e-05/9.102, allocations: 27.98 kB / 3.572 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.215e-05/9.102, allocations: 15.94 kB / 3.572 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/9.102, allocations: 11.94 kB / 3.572 GB, free: 11.83 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001919/9.104, allocations: 1.669 MB / 3.574 GB, free: 9.887 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006438/9.104, allocations: 339.3 kB / 3.574 GB, free: 9.535 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/9.105, allocations: 27.98 kB / 3.574 GB, free: 9.508 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/9.106, allocations: 127.9 kB / 3.574 GB, free: 9.383 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/9.106, allocations: 60.03 kB / 3.575 GB, free: 9.324 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.638e-05/9.106, allocations: 39.97 kB / 3.575 GB, free: 9.285 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001072/9.107, allocations: 0.744 MB / 3.575 GB, free: 8.531 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.4e-07/9.107, allocations: 4 kB / 3.575 GB, free: 8.527 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00164/9.109, allocations: 443.6 kB / 3.576 GB, free: 8.094 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * 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.002421/9.111, allocations: 1.603 MB / 3.577 GB, free: 6.418 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001478/9.113, allocations: 0.8334 MB / 3.578 GB, free: 5.574 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/9.113, allocations: 4.75 kB / 3.578 GB, free: 5.57 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0006546/9.113, allocations: 478.9 kB / 3.579 GB, free: 5.09 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002795/9.116, allocations: 0.5215 MB / 3.579 GB, free: 4.574 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/9.119, allocations: 1.567 MB / 3.581 GB, free: 2.883 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007071/9.12, allocations: 1.093 MB / 3.582 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001287/9.121, allocations: 288 kB / 3.582 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/9.122, allocations: 79.41 kB / 3.582 GB, free: 1.398 MB / 0.7136 GB Notification: Performance of SimCode: time 6.21e-07/9.122, allocations: 0 / 3.582 GB, free: 1.398 MB / 0.7136 GB Notification: Performance of Templates: time 0.5327/9.654, allocations: 40.79 MB / 3.622 GB, free: 124.8 MB / 0.7136 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)