Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",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.001081/0.001081, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.243/1.243, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002045/0.002045, allocations: 286.9 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9082/0.9082, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 102.6 kB / 0.5954 GB, free: 27.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1456, allocations: 86.98 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.0706/0.2162, allocations: 77.14 MB / 0.7556 GB, free: 3.227 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02355/0.2398, allocations: 18.89 MB / 0.7741 GB, free: 304 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002989/0.2428, allocations: 111.4 kB / 0.7742 GB, free: 192 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.2751/0.518, allocations: 1.242 MB / 0.7754 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01002/0.5281, allocations: 3.628 MB / 0.7789 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005313/0.5334, allocations: 2.077 MB / 0.781 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.008245/0.5416, allocations: 6.676 MB / 0.7875 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002894/0.5446, allocations: 2.085 MB / 0.7895 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004622/0.5492, allocations: 2.303 MB / 0.7918 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002201/0.5514, allocations: 1.752 MB / 0.7935 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003012/0.5517, allocations: 199.8 kB / 0.7937 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003418/0.5552, allocations: 1.62 MB / 0.7952 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0005156/0.5557, allocations: 0.5335 MB / 0.7958 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001313/0.557, allocations: 1.251 MB / 0.797 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004723/0.5617, allocations: 3.717 MB / 0.8006 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.5618, allocations: 0 / 0.8006 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5618, allocations: 0 / 0.8006 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.613e-05/0.5618, allocations: 1.875 kB / 0.8006 GB, free: 6.18 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.005107/0.5669, allocations: 2.708 MB / 0.8033 GB, free: 20.88 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.567, allocations: 14.47 kB / 0.8033 GB, free: 20.88 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002405/0.5672, allocations: 202.9 kB / 0.8035 GB, free: 20.84 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.5683, allocations: 267.7 kB / 0.8037 GB, free: 20.71 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004023/0.5723, allocations: 1.902 MB / 0.8056 GB, free: 20.23 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.193e-05/0.5724, allocations: 112.3 kB / 0.8057 GB, free: 20.23 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/0.5726, allocations: 146.3 kB / 0.8058 GB, free: 20.22 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002803/0.5754, allocations: 1.51 MB / 0.8073 GB, free: 20 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.851e-05/0.5755, allocations: 2.125 kB / 0.8073 GB, free: 20 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.5756, allocations: 56.91 kB / 0.8074 GB, free: 20 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-05/0.5757, allocations: 49.73 kB / 0.8074 GB, free: 19.99 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002095/0.5778, allocations: 1.118 MB / 0.8085 GB, free: 19.98 MB / 0.5762 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.00801/0.5858, allocations: 7.662 MB / 0.816 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009399/0.5868, allocations: 475.7 kB / 0.8164 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006201/0.5874, allocations: 349.6 kB / 0.8168 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000843/0.5883, allocations: 1.147 MB / 0.8179 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.5883, allocations: 52.28 kB / 0.8179 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=59): time 2.715e-06/0.5883, allocations: 0 / 0.8179 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of matching and sorting (n=59): time 0.0022/0.5905, allocations: 0.9594 MB / 0.8189 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.5906, allocations: 57 kB / 0.8189 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/0.5926, allocations: 1.787 MB / 0.8207 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.225e-05/0.5927, allocations: 39.86 kB / 0.8207 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005778/0.5933, allocations: 0.9352 MB / 0.8216 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.5935, allocations: 210.8 kB / 0.8218 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.5937, allocations: 233.6 kB / 0.822 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.5939, allocations: 350.9 kB / 0.8224 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006223/0.5945, allocations: 332 kB / 0.8227 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007872/0.5953, allocations: 0.6842 MB / 0.8234 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.5967, allocations: 1.011 MB / 0.8244 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.5967, allocations: 2.625 kB / 0.8244 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002105/0.5988, allocations: 1.222 MB / 0.8256 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.5988, allocations: 10.5 kB / 0.8256 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.5989, allocations: 9.219 kB / 0.8256 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.5989, allocations: 17.69 kB / 0.8256 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009755/0.5999, allocations: 284.6 kB / 0.8259 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.548e-05/0.5999, allocations: 25.23 kB / 0.8259 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/0.6014, allocations: 166.4 kB / 0.826 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.035e-05/0.6015, allocations: 49.19 kB / 0.8261 GB, free: 11.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * 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.0007652/0.6023, allocations: 440.2 kB / 0.8265 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/0.6026, allocations: 201 kB / 0.8267 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.6042, allocations: 0.8659 MB / 0.8275 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.6043, allocations: 7.375 kB / 0.8276 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.6043, allocations: 0 / 0.8276 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001239/0.6055, allocations: 0.7988 MB / 0.8283 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003914/0.6094, allocations: 2.444 MB / 0.8307 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.6095, allocations: 0 / 0.8307 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007769/0.6102, allocations: 181.8 kB / 0.8309 GB, free: 8.383 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.166e-06/0.6103, allocations: 5.469 kB / 0.8309 GB, free: 8.383 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.6103, allocations: 26.33 kB / 0.8309 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.6103, allocations: 10.03 kB / 0.8309 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.6103, allocations: 0 / 0.8309 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.6127, allocations: 1.335 MB / 0.8322 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006695/0.6133, allocations: 369.1 kB / 0.8326 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/0.6136, allocations: 17.44 kB / 0.8326 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009771/0.6146, allocations: 62.81 kB / 0.8327 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.6147, allocations: 48.69 kB / 0.8327 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.717e-05/0.6148, allocations: 48.03 kB / 0.8328 GB, free: 7.18 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001561/0.6163, allocations: 1.233 MB / 0.834 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6164, allocations: 1.812 kB / 0.834 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001742/0.6181, allocations: 0.6597 MB / 0.8346 GB, free: 6.332 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.003577/0.6217, allocations: 2.395 MB / 0.8369 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001912/0.6236, allocations: 0.8908 MB / 0.8378 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.6236, allocations: 0 / 0.8378 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006696/0.6243, allocations: 355.2 kB / 0.8382 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005387/0.6297, allocations: 1.208 MB / 0.8393 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/0.6481, allocations: 14.22 MB / 0.8532 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009143/0.6491, allocations: 1.416 MB / 0.8546 GB, free: 6.602 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001565/0.6506, allocations: 375.6 kB / 0.855 GB, free: 6.246 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008984/0.6515, allocations: 0.7687 MB / 0.8557 GB, free: 5.477 MB / 0.5919 GB Notification: Performance of SimCode: time 8.71e-07/0.6516, allocations: 4 kB / 0.8557 GB, free: 5.473 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09078/0.7423, allocations: 57.35 MB / 0.9117 GB, free: 13.02 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.607/9.349, allocations: 7.438 kB / 0.9117 GB, free: 13.01 MB / 0.6544 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1)