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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001184/0.001184, allocations: 191.5 kB / 16.25 MB, free: 6.617 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.258/1.258, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001904/0.001904, allocations: 287 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8677/0.8677, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002289/0.002289, allocations: 91.59 kB / 0.5948 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1739, allocations: 86.97 MB / 0.6797 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03632/0.2102, allocations: 41.24 MB / 0.72 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01465/0.2249, allocations: 10.32 MB / 0.7301 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002013/0.227, allocations: 51.69 kB / 0.7301 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001933/0.229, allocations: 0.5595 MB / 0.7307 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.007243/0.2363, allocations: 1.754 MB / 0.7324 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002851/0.2391, allocations: 1.089 MB / 0.7335 GB, free: 9.805 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004109/0.2433, allocations: 3.42 MB / 0.7368 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.2445, allocations: 1.052 MB / 0.7378 GB, free: 5.305 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002431/0.2469, allocations: 1.239 MB / 0.739 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009567/0.2479, allocations: 0.9256 MB / 0.7399 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.2481, allocations: 100 kB / 0.74 GB, free: 3.039 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.2498, allocations: 0.8693 MB / 0.7409 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002586/0.2501, allocations: 275 kB / 0.7411 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005901/0.2507, allocations: 0.6299 MB / 0.7418 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002271/0.2529, allocations: 1.92 MB / 0.7436 GB, free: 15.34 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2529, allocations: 4 kB / 0.7436 GB, free: 15.34 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.473e-06/0.253, allocations: 0 / 0.7436 GB, free: 15.34 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.392e-05/0.253, allocations: 4 kB / 0.7436 GB, free: 15.33 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.00237/0.2553, allocations: 1.518 MB / 0.7451 GB, free: 13.76 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2554, allocations: 12.03 kB / 0.7451 GB, free: 13.75 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.2555, allocations: 122.7 kB / 0.7452 GB, free: 13.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.2559, allocations: 139.4 kB / 0.7454 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.2573, allocations: 1.072 MB / 0.7464 GB, free: 12.37 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.814e-05/0.2574, allocations: 54 kB / 0.7465 GB, free: 12.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.168e-05/0.2575, allocations: 71.94 kB / 0.7465 GB, free: 12.25 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.2587, allocations: 0.7866 MB / 0.7473 GB, free: 11.42 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.2588, allocations: 0 / 0.7473 GB, free: 11.42 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-05/0.2588, allocations: 35.94 kB / 0.7474 GB, free: 11.39 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.171e-05/0.2589, allocations: 27.98 kB / 0.7474 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.2599, allocations: 0.5672 MB / 0.7479 GB, free: 10.79 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.003588/0.2635, allocations: 3.536 MB / 0.7514 GB, free: 7.027 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005314/0.2641, allocations: 268.2 kB / 0.7516 GB, free: 6.758 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003274/0.2644, allocations: 181.3 kB / 0.7518 GB, free: 6.578 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004841/0.2649, allocations: 0.657 MB / 0.7525 GB, free: 5.773 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.2649, allocations: 38.56 kB / 0.7525 GB, free: 5.727 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.2649, allocations: 0 / 0.7525 GB, free: 5.727 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001135/0.2661, allocations: 0.5091 MB / 0.753 GB, free: 5.211 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.2661, allocations: 59.39 kB / 0.753 GB, free: 5.141 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.2672, allocations: 0.9299 MB / 0.754 GB, free: 4.191 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.2672, allocations: 41.64 kB / 0.754 GB, free: 4.145 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.2676, allocations: 499.6 kB / 0.7545 GB, free: 3.652 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.2677, allocations: 118.4 kB / 0.7546 GB, free: 3.535 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.2679, allocations: 114.1 kB / 0.7547 GB, free: 3.418 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.268, allocations: 337.9 kB / 0.755 GB, free: 3.082 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003402/0.2684, allocations: 161 kB / 0.7552 GB, free: 2.922 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004611/0.2688, allocations: 343.6 kB / 0.7555 GB, free: 2.516 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007812/0.2696, allocations: 0.5148 MB / 0.756 GB, free: 1.93 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.2696, allocations: 4 kB / 0.756 GB, free: 1.926 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001072/0.2707, allocations: 0.6093 MB / 0.7566 GB, free: 1.309 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.2707, allocations: 8 kB / 0.7566 GB, free: 1.301 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.2707, allocations: 4 kB / 0.7566 GB, free: 1.297 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.2708, allocations: 8 kB / 0.7566 GB, free: 1.289 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004136/0.2712, allocations: 132.3 kB / 0.7567 GB, free: 1.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.2712, allocations: 11.94 kB / 0.7568 GB, free: 1.148 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006472/0.2719, allocations: 111.2 kB / 0.7569 GB, free: 1.039 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.315e-05/0.2719, allocations: 27.94 kB / 0.7569 GB, free: 1.012 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003311/0.2723, allocations: 278.3 kB / 0.7572 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.2724, allocations: 102.8 kB / 0.7572 GB, free: 0.6289 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008921/0.2733, allocations: 492.6 kB / 0.7577 GB, free: 144 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.2733, allocations: 4 kB / 0.7577 GB, free: 140 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.2734, allocations: 4.062 kB / 0.7577 GB, free: 136 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006803/0.274, allocations: 453.4 kB / 0.7582 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.2759, allocations: 1.367 MB / 0.7595 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.2759, allocations: 4.156 kB / 0.7595 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003199/0.2762, allocations: 79.83 kB / 0.7596 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.2763, allocations: 4 kB / 0.7596 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.2763, allocations: 11.98 kB / 0.7596 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.2763, allocations: 4 kB / 0.7596 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2763, allocations: 0 / 0.7596 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.2776, allocations: 0.7621 MB / 0.7603 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.2779, allocations: 231.7 kB / 0.7606 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.278, allocations: 8 kB / 0.7606 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000537/0.2785, allocations: 48 kB / 0.7606 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.2786, allocations: 23.97 kB / 0.7606 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.2787, allocations: 23.98 kB / 0.7607 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007499/0.2794, allocations: 0.6471 MB / 0.7613 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2794, allocations: 0 / 0.7613 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008558/0.2803, allocations: 343.3 kB / 0.7616 GB, free: 11.99 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.002106/0.2824, allocations: 1.581 MB / 0.7632 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008874/0.2833, allocations: 448.1 kB / 0.7636 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2833, allocations: 4 kB / 0.7636 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003526/0.2837, allocations: 186.5 kB / 0.7638 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00245/0.2861, allocations: 0.6161 MB / 0.7644 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.2971, allocations: 7.473 MB / 0.7717 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.2977, allocations: 1.036 MB / 0.7727 GB, free: 232 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000785/0.2985, allocations: 201.1 kB / 0.7729 GB, free: 32 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2305/0.529, allocations: 372.2 kB / 0.7732 GB, free: 93.68 MB / 0.5606 GB Notification: Performance of SimCode: time 6.91e-07/0.529, allocations: 0 / 0.7732 GB, free: 93.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04317/0.5722, allocations: 28.98 MB / 0.8015 GB, free: 84.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/0.5724, allocations: 267.3 kB / 0.8018 GB, free: 83.82 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.495/3.067, allocations: 0 / 0.8018 GB, free: 83.82 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)