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.001721/0.001721, allocations: 110.3 kB / 16.41 MB, free: 6.496 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.001916/0.001916, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.467/1.467, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002542/0.002542, allocations: 290.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.036/1.036, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002867/0.002867, allocations: 100.1 kB / 0.6821 GB, free: 6.957 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4349/0.4377, allocations: 86.97 MB / 0.7671 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04845/0.4862, allocations: 41.63 MB / 0.8077 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01815/0.5043, allocations: 10.41 MB / 0.8179 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.5065, allocations: 59.62 kB / 0.8179 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001973/0.5085, allocations: 0.6677 MB / 0.8186 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00587/0.5143, allocations: 1.975 MB / 0.8205 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003492/0.5178, allocations: 1.195 MB / 0.8217 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005562/0.5234, allocations: 3.401 MB / 0.825 GB, free: 8.375 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.525, allocations: 0.8722 MB / 0.8259 GB, free: 7.488 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00325/0.5283, allocations: 1.266 MB / 0.8271 GB, free: 6.227 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.53, allocations: 0.8828 MB / 0.828 GB, free: 5.34 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002045/0.5302, allocations: 100 kB / 0.828 GB, free: 5.242 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002194/0.5324, allocations: 0.8617 MB / 0.8289 GB, free: 4.379 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003337/0.5327, allocations: 294.8 kB / 0.8292 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008224/0.5335, allocations: 0.6298 MB / 0.8298 GB, free: 3.457 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003228/0.5367, allocations: 1.948 MB / 0.8317 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.5367, allocations: 0 / 0.8317 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5367, allocations: 0 / 0.8317 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.902e-05/0.5368, allocations: 0 / 0.8317 GB, free: 1.508 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.002864/0.5396, allocations: 1.558 MB / 0.8332 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.5397, allocations: 12.03 kB / 0.8332 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003921/0.5401, allocations: 144.1 kB / 0.8334 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002001/0.5421, allocations: 1.102 MB / 0.8344 GB, free: 14.6 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.239e-05/0.5421, allocations: 58 kB / 0.8345 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.5423, allocations: 79.89 kB / 0.8346 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.5437, allocations: 0.7944 MB / 0.8353 GB, free: 13.63 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.5438, allocations: 3.938 kB / 0.8353 GB, free: 13.63 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-05/0.5438, allocations: 28 kB / 0.8354 GB, free: 13.6 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.115e-05/0.5439, allocations: 19.94 kB / 0.8354 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.5451, allocations: 0.5711 MB / 0.836 GB, free: 13.01 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.004693/0.5498, allocations: 3.56 MB / 0.8394 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006351/0.5504, allocations: 238.4 kB / 0.8397 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003708/0.5508, allocations: 169.3 kB / 0.8398 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006449/0.5514, allocations: 0.6532 MB / 0.8405 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.5515, allocations: 46.48 kB / 0.8405 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=31): time 2.485e-06/0.5515, allocations: 3.938 kB / 0.8405 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31): time 0.001362/0.5528, allocations: 0.5146 MB / 0.841 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.5529, allocations: 55.41 kB / 0.8411 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.5542, allocations: 0.9456 MB / 0.842 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.054e-05/0.5543, allocations: 29.7 kB / 0.842 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004791/0.5547, allocations: 0.5004 MB / 0.8425 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.5549, allocations: 119 kB / 0.8426 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.555, allocations: 114.2 kB / 0.8427 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.5552, allocations: 334 kB / 0.843 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003892/0.5556, allocations: 161 kB / 0.8432 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005679/0.5562, allocations: 349.3 kB / 0.8435 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009739/0.5571, allocations: 0.5156 MB / 0.844 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5571, allocations: 0 / 0.844 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001263/0.5584, allocations: 0.6254 MB / 0.8446 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.5584, allocations: 4 kB / 0.8446 GB, free: 3.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.5584, allocations: 8 kB / 0.8447 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.5585, allocations: 8 kB / 0.8447 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004673/0.5589, allocations: 123.8 kB / 0.8448 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.5589, allocations: 8.438 kB / 0.8448 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006159/0.5596, allocations: 87.42 kB / 0.8449 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.782e-05/0.5596, allocations: 24 kB / 0.8449 GB, free: 3.246 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.0004319/0.56, allocations: 277.9 kB / 0.8452 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/0.5602, allocations: 111.3 kB / 0.8453 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.5613, allocations: 497.5 kB / 0.8457 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.5613, allocations: 4 kB / 0.8457 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.5613, allocations: 3.938 kB / 0.8457 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00081/0.5621, allocations: 453.4 kB / 0.8462 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002405/0.5645, allocations: 1.359 MB / 0.8475 GB, free: 468 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.5645, allocations: 3.984 kB / 0.8475 GB, free: 464 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.5649, allocations: 76.05 kB / 0.8476 GB, free: 388 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.445e-06/0.5649, allocations: 4 kB / 0.8476 GB, free: 384 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.5649, allocations: 12 kB / 0.8476 GB, free: 372 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.5649, allocations: 4 kB / 0.8476 GB, free: 368 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.5649, allocations: 3.938 kB / 0.8476 GB, free: 364 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.5664, allocations: 0.7674 MB / 0.8484 GB, free: 15.56 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003707/0.5668, allocations: 236.3 kB / 0.8486 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.5669, allocations: 20.11 kB / 0.8486 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005119/0.5674, allocations: 23.97 kB / 0.8486 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.87e-05/0.5675, allocations: 31.84 kB / 0.8487 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.143e-05/0.5675, allocations: 19.98 kB / 0.8487 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0009443/0.5685, allocations: 0.6627 MB / 0.8493 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5685, allocations: 0 / 0.8493 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001062/0.5695, allocations: 335.3 kB / 0.8496 GB, free: 14.21 MB / 0.6231 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.0008598/0.5704, allocations: 395.7 kB / 0.85 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009419/0.5713, allocations: 399.5 kB / 0.8504 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5713, allocations: 1.375 kB / 0.8504 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.5717, allocations: 180.6 kB / 0.8506 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.5744, allocations: 0.6152 MB / 0.8512 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.5773, allocations: 1.627 MB / 0.8528 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007642/0.578, allocations: 1.036 MB / 0.8538 GB, free: 9.918 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0006605/0.5787, allocations: 198.7 kB / 0.854 GB, free: 9.727 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.5789, allocations: 83.42 kB / 0.854 GB, free: 9.645 MB / 0.6231 GB Notification: Performance of SimCode: time 6.31e-07/0.5789, allocations: 0 / 0.854 GB, free: 9.645 MB / 0.6231 GB Notification: Performance of Templates: time 0.04023/0.6191, allocations: 21.48 MB / 0.875 GB, free: 4.477 MB / 0.6387 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)