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.0007808/0.000781, allocations: 97.95 kB / 15.36 MB, free: 0.7305 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.0009275/0.0009274, allocations: 174.5 kB / 16.27 MB, free: 6.66 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.342/1.342, 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.001803/0.001803, allocations: 274.6 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9396/0.9396, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005967/0.0005967, allocations: 11.78 kB / 0.5986 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1631, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03837/0.2016, allocations: 40.47 MB / 0.7246 GB, free: 6.488 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01489/0.2165, allocations: 10.34 MB / 0.7347 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.2181, allocations: 47.69 kB / 0.7348 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001398/0.2195, allocations: 0.5244 MB / 0.7353 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00449/0.224, allocations: 1.75 MB / 0.737 GB, free: 9.793 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002651/0.2266, allocations: 1.077 MB / 0.7381 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.005813/0.2325, allocations: 4.514 MB / 0.7425 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.234, allocations: 0.8656 MB / 0.7433 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002376/0.2364, allocations: 1.011 MB / 0.7443 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001206/0.2376, allocations: 0.8592 MB / 0.7451 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.592e-05/0.2377, allocations: 36 kB / 0.7452 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002297/0.24, allocations: 0.7638 MB / 0.7459 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002488/0.2403, allocations: 223 kB / 0.7461 GB, free: 424 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006778/0.241, allocations: 0.5691 MB / 0.7467 GB, free: 15.83 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002219/0.2432, allocations: 1.838 MB / 0.7485 GB, free: 13.99 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2432, allocations: 3.938 kB / 0.7485 GB, free: 13.99 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.024e-06/0.2432, allocations: 0 / 0.7485 GB, free: 13.99 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.297e-05/0.2433, allocations: 4 kB / 0.7485 GB, free: 13.98 MB / 0.545 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.002215/0.2455, allocations: 1.297 MB / 0.7498 GB, free: 12.63 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2455, allocations: 12.02 kB / 0.7498 GB, free: 12.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003028/0.2458, allocations: 131.4 kB / 0.7499 GB, free: 12.49 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001571/0.2474, allocations: 1.093 MB / 0.751 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.2475, allocations: 50 kB / 0.751 GB, free: 11.31 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.2476, allocations: 72 kB / 0.7511 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/0.2489, allocations: 0.8061 MB / 0.7519 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.249, allocations: 0 / 0.7519 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.601e-05/0.249, allocations: 35.94 kB / 0.7519 GB, free: 10.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.414e-05/0.2491, allocations: 23.98 kB / 0.7519 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.2503, allocations: 0.5945 MB / 0.7525 GB, free: 9.746 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.003964/0.2542, allocations: 3.544 MB / 0.756 GB, free: 5.977 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005708/0.2548, allocations: 275.1 kB / 0.7562 GB, free: 5.699 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/0.2552, allocations: 190.9 kB / 0.7564 GB, free: 5.512 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005797/0.2558, allocations: 0.6615 MB / 0.7571 GB, free: 4.703 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.2558, allocations: 42.56 kB / 0.7571 GB, free: 4.652 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.893e-06/0.2558, allocations: 0 / 0.7571 GB, free: 4.652 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001188/0.257, allocations: 0.548 MB / 0.7576 GB, free: 4.098 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.2571, allocations: 55.41 kB / 0.7577 GB, free: 4.031 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.2582, allocations: 0.9299 MB / 0.7586 GB, free: 3.082 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.2583, allocations: 37.7 kB / 0.7586 GB, free: 3.039 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003718/0.2587, allocations: 495.6 kB / 0.7591 GB, free: 2.547 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.2588, allocations: 118.4 kB / 0.7592 GB, free: 2.43 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.787e-05/0.2589, allocations: 49.69 kB / 0.7593 GB, free: 2.375 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.259, allocations: 325.9 kB / 0.7596 GB, free: 2.051 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003633/0.2594, allocations: 181 kB / 0.7597 GB, free: 1.875 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005024/0.2599, allocations: 363.5 kB / 0.7601 GB, free: 1.445 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008493/0.2607, allocations: 0.5266 MB / 0.7606 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.2607, allocations: 0 / 0.7606 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001139/0.2619, allocations: 0.6366 MB / 0.7612 GB, free: 208 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.2619, allocations: 12.48 kB / 0.7612 GB, free: 196 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.2619, allocations: 8 kB / 0.7612 GB, free: 188 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.262, allocations: 8 kB / 0.7612 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004556/0.2624, allocations: 127.8 kB / 0.7614 GB, free: 52 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.2625, allocations: 11.94 kB / 0.7614 GB, free: 40 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007459/0.2632, allocations: 115.3 kB / 0.7615 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.207e-05/0.2633, allocations: 27.94 kB / 0.7615 GB, free: 15.89 MB / 0.5606 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.0003811/0.2637, allocations: 283.3 kB / 0.7618 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.2638, allocations: 98.78 kB / 0.7619 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.2648, allocations: 0.5032 MB / 0.7624 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.2648, allocations: 4 kB / 0.7624 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2648, allocations: 0 / 0.7624 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007552/0.2656, allocations: 473.5 kB / 0.7628 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.2677, allocations: 1.381 MB / 0.7642 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.2677, allocations: 4 kB / 0.7642 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000325/0.268, allocations: 83.81 kB / 0.7643 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.268, allocations: 8.156 kB / 0.7643 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.2681, allocations: 15.94 kB / 0.7643 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.2681, allocations: 0 / 0.7643 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2681, allocations: 4 kB / 0.7643 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.2694, allocations: 0.7971 MB / 0.7651 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003264/0.2697, allocations: 247.6 kB / 0.7653 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.2698, allocations: 8 kB / 0.7653 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005673/0.2704, allocations: 58.62 kB / 0.7654 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.306e-05/0.2705, allocations: 27.97 kB / 0.7654 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/0.2705, allocations: 19.98 kB / 0.7654 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008184/0.2713, allocations: 0.6471 MB / 0.766 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2714, allocations: 0 / 0.766 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00098/0.2723, allocations: 327.4 kB / 0.7664 GB, free: 10.77 MB / 0.5606 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.0007592/0.2731, allocations: 381.1 kB / 0.7667 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008815/0.274, allocations: 440.3 kB / 0.7671 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.274, allocations: 0 / 0.7671 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003826/0.2744, allocations: 197.8 kB / 0.7673 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002983/0.2774, allocations: 0.6075 MB / 0.7679 GB, free: 9.176 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.2799, allocations: 1.993 MB / 0.7699 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005472/0.2804, allocations: 1.032 MB / 0.7709 GB, free: 6.074 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0007052/0.2811, allocations: 196.2 kB / 0.7711 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.2813, allocations: 87.41 kB / 0.7711 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of SimCode: time 6.61e-07/0.2813, allocations: 0 / 0.7711 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of Templates: time 0.3226/0.6039, allocations: 20.23 MB / 0.7909 GB, free: 88.62 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)