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.001239/0.001239, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.00122/0.00122, allocations: 193.3 kB / 16.91 MB, free: 6.188 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.213/1.213, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001946/0.001946, allocations: 293.5 kB / 291 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.869/0.869, allocations: 169.2 MB / 0.4985 GB, free: 4.672 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001599, allocations: 89.27 kB / 0.5953 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.151, allocations: 86.97 MB / 0.6803 GB, free: 8.598 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.3004/0.4514, allocations: 41.24 MB / 0.7205 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01524/0.4667, allocations: 10.34 MB / 0.7306 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002836/0.4696, allocations: 50.53 kB / 0.7307 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00211/0.4717, allocations: 0.5486 MB / 0.7312 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005859/0.4776, allocations: 1.757 MB / 0.7329 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003288/0.4809, allocations: 1.094 MB / 0.734 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.005286/0.4862, allocations: 3.422 MB / 0.7373 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002074/0.4883, allocations: 1.037 MB / 0.7384 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004707/0.493, allocations: 1.246 MB / 0.7396 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002096/0.4951, allocations: 0.924 MB / 0.7405 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003888/0.4955, allocations: 99.34 kB / 0.7406 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002774/0.4983, allocations: 0.8689 MB / 0.7414 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003526/0.4987, allocations: 280.9 kB / 0.7417 GB, free: 11 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0009685/0.4996, allocations: 0.6325 MB / 0.7423 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002115/0.5018, allocations: 1.495 MB / 0.7438 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.5018, allocations: 0 / 0.7438 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5018, allocations: 1.531 kB / 0.7438 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.533e-05/0.5018, allocations: 4 kB / 0.7438 GB, free: 9.582 MB / 0.5137 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.002437/0.5043, allocations: 1.51 MB / 0.7452 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.5043, allocations: 9.438 kB / 0.7453 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003817/0.5047, allocations: 132.7 kB / 0.7454 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/0.5063, allocations: 1.085 MB / 0.7464 GB, free: 7.484 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.794e-05/0.5064, allocations: 55.41 kB / 0.7465 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.5065, allocations: 71.28 kB / 0.7466 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.5079, allocations: 0.7961 MB / 0.7473 GB, free: 6.922 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.508, allocations: 1.281 kB / 0.7473 GB, free: 6.922 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.505e-05/0.508, allocations: 27.28 kB / 0.7474 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.612e-05/0.5081, allocations: 22.12 kB / 0.7474 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.5092, allocations: 0.5681 MB / 0.7479 GB, free: 6.617 MB / 0.5137 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.004246/0.5134, allocations: 3.543 MB / 0.7514 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005629/0.514, allocations: 266.8 kB / 0.7517 GB, free: 3.363 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003335/0.5144, allocations: 176.3 kB / 0.7518 GB, free: 3.277 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005006/0.5149, allocations: 0.6578 MB / 0.7525 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.5149, allocations: 37.34 kB / 0.7525 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=31): time 2.334e-06/0.5149, allocations: 0 / 0.7525 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31): time 0.001255/0.5162, allocations: 0.5175 MB / 0.753 GB, free: 2.195 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.5162, allocations: 54.91 kB / 0.7531 GB, free: 2.133 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.5174, allocations: 0.9315 MB / 0.754 GB, free: 1.602 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.5174, allocations: 31.98 kB / 0.754 GB, free: 1.566 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003642/0.5178, allocations: 0.4964 MB / 0.7545 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.5179, allocations: 108.6 kB / 0.7546 GB, free: 1.031 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.5181, allocations: 112.5 kB / 0.7547 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.5182, allocations: 326.8 kB / 0.755 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.5186, allocations: 171 kB / 0.7552 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000463/0.519, allocations: 355 kB / 0.7555 GB, free: 252 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000796/0.5198, allocations: 0.5062 MB / 0.756 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.5198, allocations: 2.281 kB / 0.756 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001078/0.5209, allocations: 0.6146 MB / 0.7566 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.521, allocations: 9.891 kB / 0.7566 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.521, allocations: 5.344 kB / 0.7566 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.521, allocations: 7.688 kB / 0.7566 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.5214, allocations: 126.9 kB / 0.7567 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.5215, allocations: 8.469 kB / 0.7568 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007838/0.5222, allocations: 113.9 kB / 0.7569 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/0.5223, allocations: 27.69 kB / 0.7569 GB, free: 15.43 MB / 0.5294 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.0003464/0.5227, allocations: 280.4 kB / 0.7572 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.5228, allocations: 103.7 kB / 0.7573 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008873/0.5237, allocations: 497.5 kB / 0.7577 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.5237, allocations: 2.344 kB / 0.7577 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.5237, allocations: 0 / 0.7577 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007264/0.5245, allocations: 449.7 kB / 0.7582 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.5266, allocations: 1.365 MB / 0.7595 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5266, allocations: 1.375 kB / 0.7595 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/0.5269, allocations: 76.25 kB / 0.7596 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.5269, allocations: 14.78 kB / 0.7596 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.527, allocations: 8.125 kB / 0.7596 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.527, allocations: 2.75 kB / 0.7596 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.527, allocations: 1.375 kB / 0.7596 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.5282, allocations: 0.762 MB / 0.7603 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003746/0.5286, allocations: 223.8 kB / 0.7606 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.5287, allocations: 11.94 kB / 0.7606 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005517/0.5293, allocations: 55.94 kB / 0.7606 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.365e-05/0.5293, allocations: 23.97 kB / 0.7606 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-05/0.5294, allocations: 28.05 kB / 0.7607 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007712/0.5302, allocations: 0.651 MB / 0.7613 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5302, allocations: 0 / 0.7613 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001015/0.5312, allocations: 331.4 kB / 0.7616 GB, free: 11.65 MB / 0.5294 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.00074/0.5319, allocations: 384.2 kB / 0.762 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0009126/0.5329, allocations: 452.7 kB / 0.7624 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5329, allocations: 0 / 0.7624 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003613/0.5332, allocations: 189.1 kB / 0.7626 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.5357, allocations: 0.6079 MB / 0.7632 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.5381, allocations: 1.978 MB / 0.7651 GB, free: 8.039 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005224/0.5387, allocations: 1.032 MB / 0.7661 GB, free: 6.977 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.5388, allocations: 83.42 kB / 0.7662 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of SimCode: time 3.3e-07/0.5388, allocations: 0 / 0.7662 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of Templates: time 0.02354/0.5624, allocations: 17.78 MB / 0.7836 GB, free: 5.297 MB / 0.545 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)