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.8278/0.8278, allocations: 141.8 MB / 149.3 MB, free: 9.215 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.0009978/0.0009979, allocations: 168.9 kB / 182.2 MB, free: 9.473 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.643/1.643, allocations: 221.5 MB / 436.4 MB, free: 13.31 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.0009046/0.0009045, allocations: 84.12 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001848/0.001847, allocations: 288.9 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.57e-05/2.567e-05, allocations: 8 kB / 0.6765 GB, free: 12.86 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5477/0.5478, allocations: 82.77 MB / 0.7574 GB, free: 32.04 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.405/6.953, allocations: 2.114 GB / 2.872 GB, free: 228.9 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/6.953, allocations: 87.83 kB / 2.872 GB, free: 228.8 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.337/9.29, allocations: 0.6536 GB / 3.525 GB, free: 100.6 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.363e-06/9.29, allocations: 0 / 3.525 GB, free: 100.6 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001859/9.291, allocations: 39.05 kB / 3.526 GB, free: 100.6 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.005406/9.296, allocations: 1.483 MB / 3.527 GB, free: 99.06 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/9.296, allocations: 8.031 kB / 3.527 GB, free: 99.05 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003079/9.299, allocations: 0.5326 MB / 3.528 GB, free: 98.52 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02669/9.326, allocations: 13.11 MB / 3.54 GB, free: 85.43 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001176/9.327, allocations: 289 kB / 3.541 GB, free: 85.15 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004959/9.328, allocations: 40 kB / 3.541 GB, free: 85.11 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001926/9.329, allocations: 0.7257 MB / 3.541 GB, free: 84.39 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/9.332, allocations: 0.8949 MB / 3.542 GB, free: 83.45 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/9.332, allocations: 3.953 kB / 3.542 GB, free: 83.44 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001525/9.332, allocations: 1.969 kB / 3.542 GB, free: 83.44 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.635e-05/9.332, allocations: 33.3 kB / 3.542 GB, free: 83.41 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007224/9.339, allocations: 3.108 MB / 3.545 GB, free: 80.28 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009648/9.34, allocations: 0.5602 MB / 3.546 GB, free: 79.71 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/9.341, allocations: 356.7 kB / 3.546 GB, free: 79.36 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008681/9.341, allocations: 1.021 MB / 3.547 GB, free: 78.12 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006773/9.342, allocations: 473.9 kB / 3.548 GB, free: 77.63 MB / 0.698 GB Notification: Performance of pre-optimization done (n=57): time 5.441e-06/9.342, allocations: 3.938 kB / 3.548 GB, free: 77.62 MB / 0.698 GB Notification: Performance of matching and sorting (n=57): time 0.00226/9.344, allocations: 0.7788 MB / 3.548 GB, free: 76.84 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/9.344, allocations: 140.9 kB / 3.549 GB, free: 76.68 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/9.346, allocations: 0.649 MB / 3.549 GB, free: 76.02 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001354/9.346, allocations: 29.69 kB / 3.549 GB, free: 75.99 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003804/9.346, allocations: 468.1 kB / 3.55 GB, free: 75.52 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/9.346, allocations: 177.3 kB / 3.55 GB, free: 75.35 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.093e-05/9.346, allocations: 0 / 3.55 GB, free: 75.35 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001038/9.346, allocations: 333.9 kB / 3.55 GB, free: 75.02 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004168/9.347, allocations: 301.2 kB / 3.55 GB, free: 74.72 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006084/9.347, allocations: 0.4926 MB / 3.551 GB, free: 74.16 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008279/9.348, allocations: 404.4 kB / 3.551 GB, free: 73.76 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/9.348, allocations: 4 kB / 3.551 GB, free: 73.76 MB / 0.698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001714/9.35, allocations: 0.9087 MB / 3.552 GB, free: 72.84 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.727e-05/9.35, allocations: 37.7 kB / 3.552 GB, free: 72.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/9.35, allocations: 4 kB / 3.552 GB, free: 72.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.798e-05/9.35, allocations: 8.375 kB / 3.552 GB, free: 72.79 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009797/9.351, allocations: 223.6 kB / 3.552 GB, free: 72.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/9.351, allocations: 11.97 kB / 3.552 GB, free: 72.55 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/9.353, allocations: 265.5 kB / 3.553 GB, free: 72.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/9.353, allocations: 39.97 kB / 3.553 GB, free: 72.26 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.0002742/9.353, allocations: 166.7 kB / 3.553 GB, free: 72.08 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002943/9.354, allocations: 90.88 kB / 3.553 GB, free: 71.99 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/9.355, allocations: 0.8533 MB / 3.554 GB, free: 71.14 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/9.355, allocations: 4 kB / 3.554 GB, free: 71.13 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/9.355, allocations: 4 kB / 3.554 GB, free: 71.13 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/9.355, allocations: 3.984 kB / 3.554 GB, free: 71.12 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004722/9.36, allocations: 2.958 MB / 3.557 GB, free: 68.04 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/9.36, allocations: 8 kB / 3.557 GB, free: 68.04 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006011/9.361, allocations: 128.1 kB / 3.557 GB, free: 67.91 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.52e-05/9.361, allocations: 12 kB / 3.557 GB, free: 67.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.839e-05/9.361, allocations: 19.98 kB / 3.557 GB, free: 67.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-05/9.361, allocations: 19.94 kB / 3.557 GB, free: 67.86 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/9.361, allocations: 15.94 kB / 3.557 GB, free: 67.84 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/9.363, allocations: 1.561 MB / 3.558 GB, free: 65.98 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005692/9.363, allocations: 299.7 kB / 3.559 GB, free: 65.67 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002237/9.364, allocations: 15.98 kB / 3.559 GB, free: 65.65 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/9.365, allocations: 119.9 kB / 3.559 GB, free: 65.54 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/9.365, allocations: 59.78 kB / 3.559 GB, free: 65.48 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/9.365, allocations: 47.91 kB / 3.559 GB, free: 65.43 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006964/9.366, allocations: 0.4991 MB / 3.559 GB, free: 64.94 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/9.366, allocations: 0 / 3.559 GB, free: 64.94 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001898/9.368, allocations: 415.3 kB / 3.56 GB, free: 64.53 MB / 0.698 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.003147/9.371, allocations: 1.75 MB / 3.562 GB, free: 62.88 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001329/9.372, allocations: 0.8021 MB / 3.562 GB, free: 62.07 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/9.372, allocations: 0 / 3.562 GB, free: 62.07 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005778/9.373, allocations: 457 kB / 3.563 GB, free: 61.61 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/9.375, allocations: 353.9 kB / 3.563 GB, free: 61.27 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003158/9.378, allocations: 1.487 MB / 3.565 GB, free: 59.65 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007161/9.379, allocations: 1.088 MB / 3.566 GB, free: 58.54 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00121/9.38, allocations: 257.8 kB / 3.566 GB, free: 58.29 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002717/9.38, allocations: 71.41 kB / 3.566 GB, free: 58.21 MB / 0.698 GB Notification: Performance of SimCode: time 9.12e-07/9.38, allocations: 3.938 kB / 3.566 GB, free: 58.21 MB / 0.698 GB Notification: Performance of Templates: time 0.03976/9.42, allocations: 23.1 MB / 3.588 GB, free: 35.24 MB / 0.698 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)