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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 191.9 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002166/0.002166, allocations: 281.5 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9554/0.9554, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001647, allocations: 89.7 kB / 0.5947 GB, free: 28.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1716, allocations: 86.98 MB / 0.6796 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4925/0.6641, allocations: 191.5 MB / 0.8666 GB, free: 88 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.009533/0.6737, allocations: 6.903 MB / 0.8733 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.6748, allocations: 38.81 kB / 0.8734 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001545/0.6764, allocations: 0.5933 MB / 0.874 GB, free: 9.953 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005009/0.6814, allocations: 2.199 MB / 0.8761 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003048/0.6845, allocations: 1.317 MB / 0.8774 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003776/0.6883, allocations: 2.999 MB / 0.8803 GB, free: 5.629 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001274/0.6896, allocations: 0.9063 MB / 0.8812 GB, free: 5.062 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00273/0.6923, allocations: 1.16 MB / 0.8823 GB, free: 4.387 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.6936, allocations: 0.8311 MB / 0.8831 GB, free: 3.895 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.6937, allocations: 103.4 kB / 0.8832 GB, free: 3.891 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003482/0.6972, allocations: 2.135 MB / 0.8853 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003431/0.6976, allocations: 370 kB / 0.8857 GB, free: 2.426 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005647/0.6981, allocations: 0.5968 MB / 0.8863 GB, free: 2.016 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003188/0.7013, allocations: 2.484 MB / 0.8887 GB, free: 420 kB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.7013, allocations: 0 / 0.8887 GB, free: 420 kB / 0.5919 GB Notification: Performance of FrontEnd: time 3.156e-06/0.7014, allocations: 0 / 0.8887 GB, free: 420 kB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.385e-05/0.7014, allocations: 3.938 kB / 0.8887 GB, free: 416 kB / 0.5919 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.003251/0.7046, allocations: 1.63 MB / 0.8903 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.7047, allocations: 7.5 kB / 0.8903 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002836/0.7075, allocations: 0.541 MB / 0.8908 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00194/0.7095, allocations: 0.9962 MB / 0.8918 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001082/0.7106, allocations: 268.4 kB / 0.8921 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.7107, allocations: 75.47 kB / 0.8921 GB, free: 13.99 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.7133, allocations: 1.127 MB / 0.8932 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.7133, allocations: 3.938 kB / 0.8932 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.7135, allocations: 31.94 kB / 0.8933 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.016e-05/0.7135, allocations: 25.31 kB / 0.8933 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003248/0.7168, allocations: 1.207 MB / 0.8945 GB, free: 11.96 MB / 0.6075 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.006027/0.7228, allocations: 3.207 MB / 0.8976 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.7245, allocations: 0.6841 MB / 0.8983 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007785/0.7253, allocations: 422.2 kB / 0.8987 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008996/0.7262, allocations: 1.025 MB / 0.8997 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001061/0.7273, allocations: 0.5104 MB / 0.9002 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 4.128e-06/0.7273, allocations: 4 kB / 0.9002 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.002891/0.7302, allocations: 1.228 MB / 0.9014 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.7303, allocations: 140.8 kB / 0.9015 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.7323, allocations: 1.2 MB / 0.9027 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.81e-05/0.7324, allocations: 41.7 kB / 0.9027 GB, free: 3.113 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003515/0.7327, allocations: 433.4 kB / 0.9031 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.7329, allocations: 189.3 kB / 0.9033 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002793/0.7332, allocations: 146.1 kB / 0.9034 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.7333, allocations: 334 kB / 0.9038 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.7346, allocations: 452.9 kB / 0.9042 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.7361, allocations: 0.6249 MB / 0.9048 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.7382, allocations: 0.9418 MB / 0.9057 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.7383, allocations: 0 / 0.9057 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003275/0.7415, allocations: 1.229 MB / 0.9069 GB, free: 14.67 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/0.7416, allocations: 41.69 kB / 0.907 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.7416, allocations: 4.094 kB / 0.907 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.7417, allocations: 15.92 kB / 0.907 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009671/0.7426, allocations: 192.1 kB / 0.9072 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.185e-05/0.7427, allocations: 23.84 kB / 0.9072 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.7443, allocations: 262.9 kB / 0.9074 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.7444, allocations: 39.97 kB / 0.9075 GB, free: 14.09 MB / 0.6231 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 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005327/0.745, allocations: 326.1 kB / 0.9078 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/0.7452, allocations: 114.6 kB / 0.9079 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.7473, allocations: 1 MB / 0.9089 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/0.7474, allocations: 8 kB / 0.9089 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.7474, allocations: 3.938 kB / 0.9089 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.7474, allocations: 7.922 kB / 0.9089 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004877/0.7523, allocations: 3.163 MB / 0.912 GB, free: 9.301 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/0.7523, allocations: 8 kB / 0.912 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005887/0.7529, allocations: 116 kB / 0.9121 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.417e-05/0.7529, allocations: 12 kB / 0.9121 GB, free: 9.168 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-05/0.753, allocations: 23.98 kB / 0.9121 GB, free: 9.145 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.174e-05/0.753, allocations: 12 kB / 0.9122 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/0.753, allocations: 11.94 kB / 0.9122 GB, free: 9.121 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002151/0.7552, allocations: 1.361 MB / 0.9135 GB, free: 7.641 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005653/0.7558, allocations: 327.4 kB / 0.9138 GB, free: 7.301 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/0.756, allocations: 23.98 kB / 0.9138 GB, free: 7.277 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.7572, allocations: 111.9 kB / 0.9139 GB, free: 7.168 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.7573, allocations: 63.7 kB / 0.914 GB, free: 7.105 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.472e-05/0.7574, allocations: 43.95 kB / 0.914 GB, free: 7.062 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001608/0.7591, allocations: 0.8716 MB / 0.9149 GB, free: 6.184 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7591, allocations: 0 / 0.9149 GB, free: 6.184 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001145/0.7602, allocations: 299.8 kB / 0.9152 GB, free: 5.891 MB / 0.6231 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007943/0.761, allocations: 340.6 kB / 0.9155 GB, free: 5.562 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002507/0.7635, allocations: 1.055 MB / 0.9165 GB, free: 4.5 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.7636, allocations: 0 / 0.9165 GB, free: 4.5 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0009257/0.7645, allocations: 0.5125 MB / 0.917 GB, free: 3.977 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002674/0.7672, allocations: 0.5511 MB / 0.9176 GB, free: 3.449 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003813/0.771, allocations: 2.341 MB / 0.9199 GB, free: 0.9766 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007611/0.7718, allocations: 1.073 MB / 0.9209 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001137/0.7729, allocations: 284.5 kB / 0.9212 GB, free: 15.6 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002644/0.7732, allocations: 79.41 kB / 0.9212 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of SimCode: time 4.61e-07/0.7732, allocations: 0 / 0.9212 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of Templates: time 0.03709/0.8103, allocations: 21.96 MB / 0.9427 GB, free: 9.836 MB / 0.6544 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)