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.001294/0.001294, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.001303/0.001303, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.252/1.252, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002086, allocations: 277.4 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8867/0.8867, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 98.53 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1474, allocations: 86.97 MB / 0.6816 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4348/0.5822, allocations: 194 MB / 0.871 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01011/0.5923, allocations: 6.925 MB / 0.8778 GB, free: 5.453 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.5938, allocations: 51.69 kB / 0.8779 GB, free: 5.402 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.5955, allocations: 0.6908 MB / 0.8785 GB, free: 4.707 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.004931/0.6004, allocations: 2.334 MB / 0.8808 GB, free: 2.363 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002937/0.6034, allocations: 1.433 MB / 0.8822 GB, free: 0.957 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003302/0.6067, allocations: 3 MB / 0.8851 GB, free: 13.95 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.6078, allocations: 0.8935 MB / 0.886 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002239/0.61, allocations: 1.13 MB / 0.8871 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.6111, allocations: 0.8026 MB / 0.8879 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.6112, allocations: 100 kB / 0.888 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003691/0.6149, allocations: 2.058 MB / 0.89 GB, free: 8.973 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003672/0.6153, allocations: 366.8 kB / 0.8904 GB, free: 8.613 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0006261/0.6159, allocations: 0.5947 MB / 0.8909 GB, free: 8.016 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003347/0.6193, allocations: 2.415 MB / 0.8933 GB, free: 5.594 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.6193, allocations: 0 / 0.8933 GB, free: 5.594 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.874e-06/0.6193, allocations: 0 / 0.8933 GB, free: 5.594 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.178e-05/0.6193, allocations: 0 / 0.8933 GB, free: 5.594 MB / 0.6544 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.003037/0.6224, allocations: 1.638 MB / 0.8949 GB, free: 3.898 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.6224, allocations: 12.03 kB / 0.8949 GB, free: 3.887 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002708/0.6251, allocations: 0.5371 MB / 0.8954 GB, free: 3.348 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002131/0.6273, allocations: 1.03 MB / 0.8964 GB, free: 2.273 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.408e-05/0.6273, allocations: 53.31 kB / 0.8965 GB, free: 2.223 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.6275, allocations: 68 kB / 0.8965 GB, free: 2.156 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002215/0.6297, allocations: 1.116 MB / 0.8976 GB, free: 1.012 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.6297, allocations: 3.984 kB / 0.8976 GB, free: 1.008 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.091e-05/0.6298, allocations: 31.94 kB / 0.8977 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-05/0.6299, allocations: 29.31 kB / 0.8977 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002776/0.6326, allocations: 1.168 MB / 0.8988 GB, free: 15.78 MB / 0.67 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.005168/0.6378, allocations: 3.162 MB / 0.9019 GB, free: 12.54 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.6394, allocations: 0.6802 MB / 0.9026 GB, free: 11.85 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007433/0.6401, allocations: 427.2 kB / 0.903 GB, free: 11.43 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008526/0.641, allocations: 1.017 MB / 0.904 GB, free: 10.19 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001005/0.642, allocations: 0.5143 MB / 0.9045 GB, free: 9.648 MB / 0.67 GB Notification: Performance of pre-optimization done (n=57): time 2.284e-06/0.642, allocations: 0 / 0.9045 GB, free: 9.648 MB / 0.67 GB Notification: Performance of matching and sorting (n=57): time 0.002867/0.6449, allocations: 1.221 MB / 0.9057 GB, free: 8.418 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.849e-05/0.645, allocations: 140.9 kB / 0.9058 GB, free: 8.25 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001722/0.6467, allocations: 1.18 MB / 0.907 GB, free: 7.055 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 7.016e-05/0.6468, allocations: 37.7 kB / 0.907 GB, free: 7.012 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/0.6471, allocations: 441.4 kB / 0.9074 GB, free: 6.578 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.6473, allocations: 189.2 kB / 0.9076 GB, free: 6.391 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.6476, allocations: 142.1 kB / 0.9077 GB, free: 6.246 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.6477, allocations: 334 kB / 0.9081 GB, free: 5.914 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.6488, allocations: 440.8 kB / 0.9085 GB, free: 5.484 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.6501, allocations: 0.5976 MB / 0.9091 GB, free: 4.84 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00187/0.6519, allocations: 0.9305 MB / 0.91 GB, free: 3.859 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.652, allocations: 4 kB / 0.91 GB, free: 3.855 MB / 0.67 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002893/0.6549, allocations: 1.201 MB / 0.9112 GB, free: 2.637 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.876e-05/0.6549, allocations: 37.69 kB / 0.9112 GB, free: 2.594 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.6549, allocations: 4 kB / 0.9112 GB, free: 2.59 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.655, allocations: 4 kB / 0.9112 GB, free: 2.586 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009057/0.6559, allocations: 187.9 kB / 0.9114 GB, free: 2.402 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.6559, allocations: 7.938 kB / 0.9114 GB, free: 2.395 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.6573, allocations: 246.8 kB / 0.9116 GB, free: 2.152 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.75e-05/0.6574, allocations: 35.98 kB / 0.9117 GB, free: 2.117 MB / 0.67 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.0004523/0.6578, allocations: 331.8 kB / 0.912 GB, free: 1.777 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.658, allocations: 118.6 kB / 0.9121 GB, free: 1.66 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.66, allocations: 0.9916 MB / 0.9131 GB, free: 0.6602 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.66, allocations: 8 kB / 0.9131 GB, free: 0.6523 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.66, allocations: 7.875 kB / 0.9131 GB, free: 0.6445 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.66, allocations: 3.984 kB / 0.9131 GB, free: 0.6406 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004425/0.6645, allocations: 3.162 MB / 0.9162 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.6645, allocations: 8 kB / 0.9162 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005725/0.6651, allocations: 119.8 kB / 0.9163 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.28e-05/0.6651, allocations: 12 kB / 0.9163 GB, free: 13.19 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.317e-05/0.6652, allocations: 23.98 kB / 0.9163 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.417e-05/0.6652, allocations: 24.02 kB / 0.9163 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.6652, allocations: 8 kB / 0.9163 GB, free: 13.13 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.6671, allocations: 1.349 MB / 0.9177 GB, free: 11.67 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005032/0.6677, allocations: 335.3 kB / 0.918 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.6678, allocations: 20 kB / 0.918 GB, free: 11.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.6689, allocations: 99.89 kB / 0.9181 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.897e-05/0.669, allocations: 63.7 kB / 0.9182 GB, free: 11.14 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.402e-05/0.669, allocations: 39.97 kB / 0.9182 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001302/0.6704, allocations: 0.8482 MB / 0.919 GB, free: 10.25 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6704, allocations: 0 / 0.919 GB, free: 10.25 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0009534/0.6713, allocations: 299.9 kB / 0.9193 GB, free: 9.953 MB / 0.6856 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.0006386/0.672, allocations: 347.8 kB / 0.9196 GB, free: 9.621 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002174/0.6742, allocations: 1.013 MB / 0.9206 GB, free: 8.594 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6742, allocations: 8.125 kB / 0.9206 GB, free: 8.586 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0008617/0.675, allocations: 0.5067 MB / 0.9211 GB, free: 8.07 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002332/0.6774, allocations: 0.5478 MB / 0.9217 GB, free: 7.531 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.6806, allocations: 2.031 MB / 0.9237 GB, free: 5.371 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.6812, allocations: 1.065 MB / 0.9247 GB, free: 4.277 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0008201/0.682, allocations: 274.5 kB / 0.925 GB, free: 4.008 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.6822, allocations: 83.41 kB / 0.925 GB, free: 3.926 MB / 0.6856 GB Notification: Performance of SimCode: time 5.31e-07/0.6822, allocations: 0 / 0.925 GB, free: 3.926 MB / 0.6856 GB Notification: Performance of Templates: time 0.03228/0.7145, allocations: 22.02 MB / 0.9465 GB, free: 14.17 MB / 0.7169 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)