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.8858/0.8858, allocations: 143.4 MB / 158.3 MB, free: 5.648 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.001221/0.001221, allocations: 177.1 kB / 191.5 MB, free: 5.656 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.591/1.591, 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.001173/0.001173, allocations: 107.8 kB / 0.5188 GB, free: 2.902 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001817/0.001818, allocations: 272.3 kB / 0.6005 GB, free: 49.01 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006537/0.0006537, allocations: 19.98 kB / 0.6929 GB, free: 2.336 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4612/0.4619, allocations: 82.77 MB / 0.7737 GB, free: 26.25 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.909/5.371, allocations: 2.115 GB / 2.889 GB, free: 186.9 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/5.371, allocations: 87.83 kB / 2.889 GB, free: 186.8 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.961/7.333, allocations: 0.6613 GB / 3.55 GB, free: 46.83 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.533e-06/7.333, allocations: 0 / 3.55 GB, free: 46.83 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001178/7.333, allocations: 39.97 kB / 3.55 GB, free: 46.79 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.004892/7.338, allocations: 1.645 MB / 3.552 GB, free: 45.08 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/7.338, allocations: 8.031 kB / 3.552 GB, free: 45.07 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002872/7.341, allocations: 0.5356 MB / 3.552 GB, free: 44.54 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02499/7.366, allocations: 13.22 MB / 3.565 GB, free: 31.15 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001133/7.367, allocations: 317.2 kB / 3.566 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003035/7.367, allocations: 71.95 kB / 3.566 GB, free: 30.77 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002675/7.37, allocations: 1.167 MB / 3.567 GB, free: 29.57 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/7.37, allocations: 3.938 kB / 3.567 GB, free: 29.56 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/7.37, allocations: 28 kB / 3.567 GB, free: 29.54 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.224e-05/7.37, allocations: 37.28 kB / 3.567 GB, free: 29.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002828/7.373, allocations: 1.165 MB / 3.568 GB, free: 28.34 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006341/7.379, allocations: 3.311 MB / 3.571 GB, free: 24.95 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/7.381, allocations: 0.6998 MB / 3.572 GB, free: 24.25 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007273/7.381, allocations: 1.025 MB / 3.573 GB, free: 23 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009452/7.382, allocations: 0.5455 MB / 3.573 GB, free: 22.42 MB / 0.698 GB Notification: Performance of pre-optimization done (n=57): time 3.798e-06/7.382, allocations: 0 / 3.573 GB, free: 22.42 MB / 0.698 GB Notification: Performance of matching and sorting (n=57): time 0.003014/7.385, allocations: 1.365 MB / 3.575 GB, free: 21.03 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/7.385, allocations: 140.8 kB / 3.575 GB, free: 20.86 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/7.387, allocations: 1.092 MB / 3.576 GB, free: 19.76 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001203/7.387, allocations: 37.7 kB / 3.576 GB, free: 19.71 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/7.388, allocations: 437.9 kB / 3.576 GB, free: 19.28 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/7.388, allocations: 185.3 kB / 3.577 GB, free: 19.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/7.388, allocations: 12 kB / 3.577 GB, free: 19.09 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.406e-05/7.388, allocations: 326 kB / 3.577 GB, free: 18.76 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/7.389, allocations: 0.4969 MB / 3.577 GB, free: 18.27 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/7.39, allocations: 0.6992 MB / 3.578 GB, free: 17.49 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/7.392, allocations: 0.549 MB / 3.579 GB, free: 16.94 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/7.392, allocations: 4 kB / 3.579 GB, free: 16.93 MB / 0.698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003022/7.395, allocations: 1.332 MB / 3.58 GB, free: 15.59 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.092e-05/7.395, allocations: 41.62 kB / 3.58 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/7.395, allocations: 4 kB / 3.58 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/7.395, allocations: 7.938 kB / 3.58 GB, free: 15.53 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009832/7.396, allocations: 215.8 kB / 3.58 GB, free: 15.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/7.396, allocations: 11.95 kB / 3.58 GB, free: 15.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/7.398, allocations: 314.8 kB / 3.581 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/7.398, allocations: 47.97 kB / 3.581 GB, free: 14.95 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 () * Number of clocked 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.0006119/7.398, allocations: 321.1 kB / 3.581 GB, free: 14.62 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002675/7.399, allocations: 122.6 kB / 3.581 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00224/7.401, allocations: 1.061 MB / 3.582 GB, free: 13.42 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.926e-05/7.401, allocations: 8 kB / 3.582 GB, free: 13.41 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/7.401, allocations: 4 kB / 3.582 GB, free: 13.41 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/7.401, allocations: 7.938 kB / 3.582 GB, free: 13.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004897/7.406, allocations: 3.249 MB / 3.585 GB, free: 10 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/7.406, allocations: 8 kB / 3.585 GB, free: 9.992 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006184/7.407, allocations: 132 kB / 3.585 GB, free: 9.863 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/7.407, allocations: 8 kB / 3.585 GB, free: 9.855 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.024e-05/7.407, allocations: 27.98 kB / 3.585 GB, free: 9.828 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.628e-06/7.407, allocations: 15.94 kB / 3.585 GB, free: 9.812 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/7.407, allocations: 8 kB / 3.585 GB, free: 9.805 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002079/7.409, allocations: 1.805 MB / 3.587 GB, free: 7.73 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006337/7.409, allocations: 339.2 kB / 3.588 GB, free: 7.379 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/7.41, allocations: 27.98 kB / 3.588 GB, free: 7.352 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/7.411, allocations: 131.9 kB / 3.588 GB, free: 7.223 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.667e-05/7.411, allocations: 63.67 kB / 3.588 GB, free: 7.16 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-05/7.411, allocations: 43.97 kB / 3.588 GB, free: 7.117 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001467/7.413, allocations: 0.8794 MB / 3.589 GB, free: 6.23 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.21e-07/7.413, allocations: 0 / 3.589 GB, free: 6.23 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001721/7.414, allocations: 431.8 kB / 3.589 GB, free: 5.809 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) * Number of clocked states: 0 () * 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.002376/7.417, allocations: 1.602 MB / 3.591 GB, free: 4.164 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002322/7.419, allocations: 1.072 MB / 3.592 GB, free: 3.078 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/7.419, allocations: 448 / 3.592 GB, free: 3.078 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008392/7.42, allocations: 0.5385 MB / 3.592 GB, free: 2.531 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/7.423, allocations: 0.5319 MB / 3.593 GB, free: 2.008 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/7.426, allocations: 2.268 MB / 3.595 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007838/7.427, allocations: 1.097 MB / 3.596 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001337/7.428, allocations: 280.1 kB / 3.596 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00032/7.429, allocations: 83.41 kB / 3.596 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of SimCode: time 8.51e-07/7.429, allocations: 0 / 3.596 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of Templates: time 0.4445/7.873, allocations: 37.11 MB / 3.633 GB, free: 127.4 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)