Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006777/0.006777, allocations: 100.4 kB / 15.73 MB, free: 5.988 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.001638/0.001638, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002042/0.002042, allocations: 278.7 kB / 290.8 MB, free: 1.785 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9323/0.9323, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 99.83 kB / 0.6815 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1578, allocations: 86.98 MB / 0.7664 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.3922/0.5501, allocations: 41.56 MB / 0.807 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0231/0.5732, allocations: 10.39 MB / 0.8171 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003762/0.577, allocations: 56.28 kB / 0.8172 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003187/0.5803, allocations: 0.6461 MB / 0.8178 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008953/0.5893, allocations: 1.885 MB / 0.8196 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005095/0.5944, allocations: 1.188 MB / 0.8208 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006877/0.6013, allocations: 3.407 MB / 0.8241 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001897/0.6032, allocations: 1.075 MB / 0.8252 GB, free: 9.512 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0036/0.6069, allocations: 1.257 MB / 0.8264 GB, free: 8.926 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002004/0.6089, allocations: 0.8784 MB / 0.8273 GB, free: 8.52 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.6091, allocations: 100.1 kB / 0.8274 GB, free: 8.52 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002396/0.6115, allocations: 0.8597 MB / 0.8282 GB, free: 8.176 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000305/0.6118, allocations: 280.8 kB / 0.8285 GB, free: 8.008 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007736/0.6126, allocations: 0.633 MB / 0.8291 GB, free: 7.621 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003121/0.6157, allocations: 1.934 MB / 0.831 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.6157, allocations: 3.984 kB / 0.831 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.853e-06/0.6158, allocations: 0 / 0.831 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.886e-05/0.6158, allocations: 4 kB / 0.831 GB, free: 6.695 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002327/0.6181, allocations: 1.514 MB / 0.8325 GB, free: 5.52 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.6182, allocations: 9.281 kB / 0.8325 GB, free: 5.52 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00036/0.6185, allocations: 133 kB / 0.8326 GB, free: 5.457 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.6202, allocations: 1.101 MB / 0.8337 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.782e-05/0.6202, allocations: 56.59 kB / 0.8337 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.6204, allocations: 71.16 kB / 0.8338 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.6217, allocations: 0.7914 MB / 0.8346 GB, free: 4.035 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.6217, allocations: 4.969 kB / 0.8346 GB, free: 4.031 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.071e-05/0.6218, allocations: 36.22 kB / 0.8346 GB, free: 4.004 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/0.6219, allocations: 18.09 kB / 0.8346 GB, free: 4.004 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.623, allocations: 0.5645 MB / 0.8352 GB, free: 3.727 MB / 0.5919 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.003763/0.6267, allocations: 3.552 MB / 0.8386 GB, free: 0.6094 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005668/0.6273, allocations: 265.1 kB / 0.8389 GB, free: 484 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003355/0.6277, allocations: 179.1 kB / 0.8391 GB, free: 396 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000486/0.6282, allocations: 0.6615 MB / 0.8397 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.6282, allocations: 41.22 kB / 0.8398 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=31): time 2.455e-06/0.6282, allocations: 0 / 0.8398 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31): time 0.001198/0.6294, allocations: 0.5071 MB / 0.8402 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/0.6295, allocations: 58.84 kB / 0.8403 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.6306, allocations: 0.9534 MB / 0.8412 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.6307, allocations: 32.33 kB / 0.8413 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003926/0.6311, allocations: 0.496 MB / 0.8417 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.6312, allocations: 108.6 kB / 0.8419 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.6313, allocations: 112.9 kB / 0.842 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.6314, allocations: 335.3 kB / 0.8423 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/0.6318, allocations: 169.5 kB / 0.8424 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.6323, allocations: 342.9 kB / 0.8428 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008335/0.6332, allocations: 0.5095 MB / 0.8433 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.6332, allocations: 1.375 kB / 0.8433 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001134/0.6343, allocations: 0.6191 MB / 0.8439 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.6343, allocations: 6.875 kB / 0.8439 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.6344, allocations: 5.531 kB / 0.8439 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.6344, allocations: 8.219 kB / 0.8439 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004395/0.6348, allocations: 125.7 kB / 0.844 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.6349, allocations: 12.53 kB / 0.844 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006946/0.6356, allocations: 90.56 kB / 0.8441 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/0.6356, allocations: 23.88 kB / 0.8441 GB, free: 12.53 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * 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.0003695/0.636, allocations: 283 kB / 0.8444 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.6362, allocations: 95.22 kB / 0.8445 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.6372, allocations: 490.2 kB / 0.845 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.6373, allocations: 3.219 kB / 0.845 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.6373, allocations: 1.156 kB / 0.845 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007781/0.638, allocations: 453.2 kB / 0.8454 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.6403, allocations: 1.361 MB / 0.8467 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.6403, allocations: 5.188 kB / 0.8467 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.6406, allocations: 73.03 kB / 0.8468 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.6406, allocations: 7.5 kB / 0.8468 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.976e-05/0.6407, allocations: 15.47 kB / 0.8468 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.6407, allocations: 7.281 kB / 0.8468 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.6407, allocations: 1.781 kB / 0.8468 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.642, allocations: 0.7623 MB / 0.8476 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.6423, allocations: 226.6 kB / 0.8478 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.6424, allocations: 15.02 kB / 0.8478 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005154/0.6429, allocations: 31.89 kB / 0.8478 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.351e-05/0.643, allocations: 28.31 kB / 0.8479 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-05/0.643, allocations: 20.05 kB / 0.8479 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008449/0.6439, allocations: 0.6608 MB / 0.8485 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6439, allocations: 3.938 kB / 0.8485 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001006/0.6449, allocations: 341.4 kB / 0.8489 GB, free: 9.422 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0007111/0.6456, allocations: 395.7 kB / 0.8492 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0009403/0.6466, allocations: 425.7 kB / 0.8496 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.6466, allocations: 0 / 0.8496 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.647, allocations: 192.6 kB / 0.8498 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/0.6496, allocations: 0.6115 MB / 0.8504 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.652, allocations: 1.586 MB / 0.852 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005834/0.6526, allocations: 1.036 MB / 0.853 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0006318/0.6533, allocations: 198.9 kB / 0.8532 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.6534, allocations: 79.77 kB / 0.8532 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of SimCode: time 6.31e-07/0.6535, allocations: 4 kB / 0.8533 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of Templates: time 0.03177/0.6852, allocations: 21.38 MB / 0.8741 GB, free: 4.211 MB / 0.6231 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)