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.0009706/0.0009705, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008312/0.008312, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.359/1.359, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00172/0.001721, allocations: 266.4 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9173/0.9173, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004499/0.00045, allocations: 14.09 kB / 0.5986 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.1693, allocations: 88.55 MB / 0.6851 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.541/0.7103, allocations: 189.1 MB / 0.8698 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01048/0.7209, allocations: 6.926 MB / 0.8766 GB, free: 8.641 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.7223, allocations: 38.66 kB / 0.8766 GB, free: 8.621 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.7239, allocations: 0.5668 MB / 0.8771 GB, free: 8.145 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005242/0.7291, allocations: 2.184 MB / 0.8793 GB, free: 6.477 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002936/0.7321, allocations: 1.288 MB / 0.8805 GB, free: 5.539 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004078/0.7362, allocations: 3.745 MB / 0.8842 GB, free: 3.477 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001186/0.7374, allocations: 0.7674 MB / 0.8849 GB, free: 3.004 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001675/0.739, allocations: 0.9559 MB / 0.8859 GB, free: 2.344 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001636/0.7407, allocations: 0.8034 MB / 0.8867 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.7408, allocations: 40 kB / 0.8867 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004083/0.7449, allocations: 2.217 MB / 0.8889 GB, free: 15.28 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003275/0.7452, allocations: 314.8 kB / 0.8892 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005674/0.7458, allocations: 0.5418 MB / 0.8897 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003611/0.7494, allocations: 2.387 MB / 0.892 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.7494, allocations: 7.938 kB / 0.892 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.815e-06/0.7495, allocations: 0 / 0.892 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.771e-05/0.7495, allocations: 0 / 0.892 GB, free: 12.02 MB / 0.6075 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.003116/0.7526, allocations: 1.391 MB / 0.8934 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.7527, allocations: 12.03 kB / 0.8934 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002943/0.7556, allocations: 0.6073 MB / 0.894 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002062/0.7577, allocations: 0.9869 MB / 0.895 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001225/0.7589, allocations: 317 kB / 0.8953 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.7591, allocations: 68 kB / 0.8953 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/0.7616, allocations: 1.148 MB / 0.8965 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.7617, allocations: 3.938 kB / 0.8965 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-05/0.7618, allocations: 31.98 kB / 0.8965 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.774e-05/0.7618, allocations: 37.3 kB / 0.8965 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003197/0.765, allocations: 1.254 MB / 0.8977 GB, free: 6.043 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.005818/0.7709, allocations: 3.244 MB / 0.9009 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.7726, allocations: 0.6998 MB / 0.9016 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007845/0.7734, allocations: 428.3 kB / 0.902 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008949/0.7743, allocations: 1.025 MB / 0.903 GB, free: 352 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009823/0.7753, allocations: 0.526 MB / 0.9035 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 2.365e-06/0.7753, allocations: 0 / 0.9035 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.002916/0.7783, allocations: 1.24 MB / 0.9047 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/0.7783, allocations: 152.8 kB / 0.9049 GB, free: 14.37 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001974/0.7803, allocations: 1.215 MB / 0.9061 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 7.643e-05/0.7804, allocations: 41.7 kB / 0.9061 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003413/0.7808, allocations: 437.5 kB / 0.9065 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.7809, allocations: 193.3 kB / 0.9067 GB, free: 12.47 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.562e-05/0.781, allocations: 53.69 kB / 0.9068 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.7812, allocations: 322 kB / 0.9071 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/0.7825, allocations: 492.9 kB / 0.9075 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.784, allocations: 0.6444 MB / 0.9082 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002074/0.7861, allocations: 0.9809 MB / 0.9091 GB, free: 9.883 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.7861, allocations: 4 kB / 0.9091 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003261/0.7893, allocations: 1.279 MB / 0.9104 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.393e-05/0.7894, allocations: 37.69 kB / 0.9104 GB, free: 8.543 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.7894, allocations: 4 kB / 0.9104 GB, free: 8.539 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.7894, allocations: 8 kB / 0.9104 GB, free: 8.531 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000958/0.7904, allocations: 212 kB / 0.9106 GB, free: 8.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.7904, allocations: 19.81 kB / 0.9106 GB, free: 8.301 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.792, allocations: 298.9 kB / 0.9109 GB, free: 8.008 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.211e-05/0.7921, allocations: 39.97 kB / 0.911 GB, free: 7.969 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.000454/0.7926, allocations: 323.9 kB / 0.9113 GB, free: 7.637 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.7927, allocations: 126.6 kB / 0.9114 GB, free: 7.512 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.7948, allocations: 1.01 MB / 0.9124 GB, free: 6.492 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.7948, allocations: 8 kB / 0.9124 GB, free: 6.484 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.7948, allocations: 3.938 kB / 0.9124 GB, free: 6.48 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.7948, allocations: 3.984 kB / 0.9124 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004833/0.7997, allocations: 3.178 MB / 0.9155 GB, free: 3.145 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.657e-06/0.7997, allocations: 7.938 kB / 0.9155 GB, free: 3.137 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005748/0.8003, allocations: 128.2 kB / 0.9156 GB, free: 3.012 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.8003, allocations: 8 kB / 0.9156 GB, free: 3.004 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-05/0.8004, allocations: 27.98 kB / 0.9157 GB, free: 2.977 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.427e-06/0.8004, allocations: 8 kB / 0.9157 GB, free: 2.969 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.026e-05/0.8004, allocations: 15.94 kB / 0.9157 GB, free: 2.953 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/0.8025, allocations: 1.365 MB / 0.917 GB, free: 1.469 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.803, allocations: 327.3 kB / 0.9173 GB, free: 1.129 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.8031, allocations: 23.98 kB / 0.9174 GB, free: 1.105 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.8043, allocations: 123.9 kB / 0.9175 GB, free: 0.9844 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.8044, allocations: 71.67 kB / 0.9175 GB, free: 0.9141 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.718e-05/0.8045, allocations: 43.97 kB / 0.9176 GB, free: 0.8711 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00154/0.8061, allocations: 0.8912 MB / 0.9185 GB, free: 15.97 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8061, allocations: 0 / 0.9185 GB, free: 15.97 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001025/0.8071, allocations: 295.9 kB / 0.9187 GB, free: 15.68 MB / 0.6387 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.0006747/0.8078, allocations: 360.5 kB / 0.9191 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002422/0.8102, allocations: 1.049 MB / 0.9201 GB, free: 14.27 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.8102, allocations: 4 kB / 0.9201 GB, free: 14.27 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009069/0.8111, allocations: 0.5164 MB / 0.9206 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003701/0.8149, allocations: 0.5354 MB / 0.9211 GB, free: 13.22 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.8186, allocations: 2.373 MB / 0.9235 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006359/0.8192, allocations: 1.069 MB / 0.9245 GB, free: 9.617 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001155/0.8204, allocations: 278.8 kB / 0.9248 GB, free: 9.344 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.8206, allocations: 83.41 kB / 0.9248 GB, free: 9.262 MB / 0.6387 GB Notification: Performance of SimCode: time 2.164e-06/0.8206, allocations: 0 / 0.9248 GB, free: 9.262 MB / 0.6387 GB Notification: Performance of Templates: time 0.03612/0.8568, allocations: 21.14 MB / 0.9455 GB, free: 4.383 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)