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.0008112/0.0008109, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007976/0.0007977, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001725/0.001725, allocations: 278.4 kB / 291.4 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9463/0.9463, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003928, allocations: 14.81 kB / 0.598 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1342, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.0347/0.1689, allocations: 38.3 MB / 0.7219 GB, free: 9.086 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01245/0.1814, allocations: 9.729 MB / 0.7314 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.1828, allocations: 55.62 kB / 0.7314 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.184, allocations: 461 kB / 0.7319 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004629/0.1887, allocations: 1.476 MB / 0.7333 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002526/0.1912, allocations: 0.86 MB / 0.7342 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004208/0.1954, allocations: 3.858 MB / 0.7379 GB, free: 8.625 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009998/0.1964, allocations: 0.7377 MB / 0.7386 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.1979, allocations: 0.9954 MB / 0.7396 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009598/0.1989, allocations: 0.8049 MB / 0.7404 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.199, allocations: 39.94 kB / 0.7404 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.2004, allocations: 494.8 kB / 0.7409 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.2006, allocations: 203.1 kB / 0.7411 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0002441/0.2008, allocations: 261.1 kB / 0.7414 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.2022, allocations: 1.364 MB / 0.7427 GB, free: 3.719 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2022, allocations: 4 kB / 0.7427 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2023, allocations: 0 / 0.7427 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.2023, allocations: 0 / 0.7427 GB, free: 3.715 MB / 0.5294 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.00198/0.2043, allocations: 1.308 MB / 0.744 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.2043, allocations: 12.03 kB / 0.744 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003221/0.2046, allocations: 138.5 kB / 0.7441 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.2062, allocations: 1.045 MB / 0.7451 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.119e-05/0.2063, allocations: 58 kB / 0.7452 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.944e-05/0.2064, allocations: 72 kB / 0.7453 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.2078, allocations: 0.7982 MB / 0.746 GB, free: 160 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.2078, allocations: 4 kB / 0.746 GB, free: 156 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.33e-05/0.2079, allocations: 28 kB / 0.7461 GB, free: 128 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/0.2079, allocations: 20 kB / 0.7461 GB, free: 108 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.209, allocations: 0.5907 MB / 0.7467 GB, free: 15.51 MB / 0.545 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.003711/0.2127, allocations: 3.555 MB / 0.7501 GB, free: 11.73 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005408/0.2133, allocations: 263.4 kB / 0.7504 GB, free: 11.47 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003422/0.2136, allocations: 192.6 kB / 0.7506 GB, free: 11.28 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004733/0.2141, allocations: 0.6609 MB / 0.7512 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.2141, allocations: 38.56 kB / 0.7512 GB, free: 10.42 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.674e-06/0.2142, allocations: 0 / 0.7512 GB, free: 10.42 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001108/0.2153, allocations: 0.5455 MB / 0.7518 GB, free: 9.871 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.2153, allocations: 51.41 kB / 0.7518 GB, free: 9.809 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.2164, allocations: 0.9337 MB / 0.7527 GB, free: 8.855 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.2164, allocations: 33.7 kB / 0.7528 GB, free: 8.816 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003838/0.2168, allocations: 499.6 kB / 0.7533 GB, free: 8.32 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.2169, allocations: 110.5 kB / 0.7534 GB, free: 8.211 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.217, allocations: 11.94 kB / 0.7534 GB, free: 8.199 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.2171, allocations: 334 kB / 0.7537 GB, free: 7.867 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003483/0.2175, allocations: 173 kB / 0.7539 GB, free: 7.699 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004716/0.2179, allocations: 355.6 kB / 0.7542 GB, free: 7.277 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004122/0.2184, allocations: 235.7 kB / 0.7544 GB, free: 7.047 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.2184, allocations: 0 / 0.7544 GB, free: 7.047 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001075/0.2194, allocations: 0.6405 MB / 0.755 GB, free: 6.398 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.2195, allocations: 8 kB / 0.755 GB, free: 6.391 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2195, allocations: 4 kB / 0.7551 GB, free: 6.387 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.2195, allocations: 12 kB / 0.7551 GB, free: 6.375 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004238/0.2199, allocations: 128.2 kB / 0.7552 GB, free: 6.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.22, allocations: 19.88 kB / 0.7552 GB, free: 6.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005966/0.2206, allocations: 107.2 kB / 0.7553 GB, free: 6.125 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.2206, allocations: 31.98 kB / 0.7553 GB, free: 6.094 MB / 0.545 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003278/0.221, allocations: 273.6 kB / 0.7556 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.2211, allocations: 98.78 kB / 0.7557 GB, free: 5.719 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009409/0.2221, allocations: 0.5041 MB / 0.7562 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.2221, allocations: 0 / 0.7562 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2221, allocations: 4 kB / 0.7562 GB, free: 5.207 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007123/0.2228, allocations: 473.5 kB / 0.7566 GB, free: 4.715 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.2247, allocations: 1.385 MB / 0.758 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2247, allocations: 0 / 0.758 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.2251, allocations: 83.84 kB / 0.7581 GB, free: 3.176 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.2251, allocations: 0 / 0.7581 GB, free: 3.176 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.727e-05/0.2251, allocations: 12 kB / 0.7581 GB, free: 3.164 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.2251, allocations: 4 kB / 0.7581 GB, free: 3.16 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2251, allocations: 0 / 0.7581 GB, free: 3.16 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.2264, allocations: 0.7941 MB / 0.7589 GB, free: 2.336 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000303/0.2267, allocations: 243.7 kB / 0.7591 GB, free: 2.078 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.2268, allocations: 11.95 kB / 0.7591 GB, free: 2.066 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005244/0.2273, allocations: 59.91 kB / 0.7592 GB, free: 2.008 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.2274, allocations: 23.97 kB / 0.7592 GB, free: 1.984 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.2274, allocations: 19.98 kB / 0.7592 GB, free: 1.965 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007827/0.2282, allocations: 0.6354 MB / 0.7598 GB, free: 1.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.41e-07/0.2282, allocations: 4 kB / 0.7598 GB, free: 1.316 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008462/0.2291, allocations: 331.4 kB / 0.7601 GB, free: 0.9922 MB / 0.545 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006347/0.2297, allocations: 369.3 kB / 0.7605 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0008142/0.2306, allocations: 432 kB / 0.7609 GB, free: 220 kB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2306, allocations: 0.875 kB / 0.7609 GB, free: 220 kB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003725/0.231, allocations: 201.3 kB / 0.7611 GB, free: 20 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.2335, allocations: 0.5981 MB / 0.7617 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.2359, allocations: 1.965 MB / 0.7636 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005791/0.2365, allocations: 1.04 MB / 0.7646 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000686/0.2372, allocations: 203 kB / 0.7648 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.2374, allocations: 83.41 kB / 0.7649 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of SimCode: time 3.71e-07/0.2374, allocations: 0 / 0.7649 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of Templates: time 0.2824/0.5198, allocations: 19.53 MB / 0.784 GB, free: 87.75 MB / 0.5606 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)