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.004675/0.004675, allocations: 98.62 kB / 15.73 MB, free: 6.035 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.001068/0.001068, allocations: 200.5 kB / 16.67 MB, free: 5.973 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.225/1.225, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 270.8 kB / 290.8 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8705/0.8705, allocations: 169.2 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 99.84 kB / 0.681 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1468, allocations: 86.98 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.3381/0.4849, allocations: 41.56 MB / 0.8065 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01463/0.4996, allocations: 10.39 MB / 0.8166 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002087/0.5017, allocations: 59.47 kB / 0.8167 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001595/0.5034, allocations: 0.6352 MB / 0.8173 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004747/0.5081, allocations: 1.89 MB / 0.8192 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002912/0.511, allocations: 1.183 MB / 0.8203 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004146/0.5152, allocations: 3.407 MB / 0.8236 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001669/0.5169, allocations: 1.056 MB / 0.8247 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003301/0.5202, allocations: 1.271 MB / 0.8259 GB, free: 9.023 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001854/0.522, allocations: 0.8832 MB / 0.8268 GB, free: 8.613 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002905/0.5223, allocations: 99.81 kB / 0.8269 GB, free: 8.613 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002584/0.5249, allocations: 0.8685 MB / 0.8277 GB, free: 8.262 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005377/0.5255, allocations: 273.4 kB / 0.828 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.5269, allocations: 0.6323 MB / 0.8286 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003898/0.5308, allocations: 1.941 MB / 0.8305 GB, free: 6.879 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.5308, allocations: 0 / 0.8305 GB, free: 6.879 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.084e-06/0.5309, allocations: 0 / 0.8305 GB, free: 6.879 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.614e-05/0.5309, allocations: 4 kB / 0.8305 GB, free: 6.875 MB / 0.5919 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.004149/0.5351, allocations: 1.508 MB / 0.832 GB, free: 5.707 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.5351, allocations: 8.812 kB / 0.832 GB, free: 5.707 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002133/0.5354, allocations: 120.1 kB / 0.8321 GB, free: 5.605 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005451/0.5359, allocations: 132.6 kB / 0.8322 GB, free: 5.543 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002199/0.5381, allocations: 1.104 MB / 0.8333 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.768e-05/0.5382, allocations: 59.02 kB / 0.8334 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.5383, allocations: 76.33 kB / 0.8334 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.5398, allocations: 0.7877 MB / 0.8342 GB, free: 4.117 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.5398, allocations: 5.219 kB / 0.8342 GB, free: 4.113 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.557e-05/0.5399, allocations: 30.97 kB / 0.8342 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.511e-05/0.5399, allocations: 22.53 kB / 0.8343 GB, free: 4.086 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.5411, allocations: 0.5687 MB / 0.8348 GB, free: 3.805 MB / 0.5919 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.004106/0.5452, allocations: 3.539 MB / 0.8383 GB, free: 0.6992 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005475/0.5458, allocations: 266.8 kB / 0.8385 GB, free: 0.5586 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003216/0.5461, allocations: 178.1 kB / 0.8387 GB, free: 484 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004841/0.5466, allocations: 0.6579 MB / 0.8393 GB, free: 15.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.5466, allocations: 37.56 kB / 0.8394 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.5466, allocations: 0 / 0.8394 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31): time 0.001136/0.5478, allocations: 0.5105 MB / 0.8399 GB, free: 15.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.5478, allocations: 62.77 kB / 0.8399 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.5489, allocations: 0.9425 MB / 0.8408 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.549, allocations: 32.64 kB / 0.8409 GB, free: 14.76 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000358/0.5493, allocations: 0.4987 MB / 0.8414 GB, free: 14.31 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.5495, allocations: 105.1 kB / 0.8415 GB, free: 14.22 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.5496, allocations: 117.1 kB / 0.8416 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.5497, allocations: 327.2 kB / 0.8419 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003316/0.5501, allocations: 169.4 kB / 0.842 GB, free: 13.74 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004541/0.5505, allocations: 352.1 kB / 0.8424 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007871/0.5513, allocations: 0.5049 MB / 0.8429 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.5513, allocations: 1.062 kB / 0.8429 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001139/0.5525, allocations: 0.6189 MB / 0.8435 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.5525, allocations: 14.91 kB / 0.8435 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.5525, allocations: 4.656 kB / 0.8435 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.5526, allocations: 9 kB / 0.8435 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004188/0.553, allocations: 125.8 kB / 0.8436 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.553, allocations: 7.281 kB / 0.8436 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006434/0.5537, allocations: 95.59 kB / 0.8437 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.5537, allocations: 28.61 kB / 0.8438 GB, free: 12.61 MB / 0.6075 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.0003198/0.554, allocations: 274.7 kB / 0.844 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.5542, allocations: 99.06 kB / 0.8441 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008736/0.5551, allocations: 494.1 kB / 0.8446 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.5551, allocations: 4.062 kB / 0.8446 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.5551, allocations: 64 / 0.8446 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006627/0.5558, allocations: 458.5 kB / 0.845 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.5577, allocations: 1.364 MB / 0.8464 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.5577, allocations: 2.031 kB / 0.8464 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.558, allocations: 72.11 kB / 0.8464 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.675e-06/0.558, allocations: 10.53 kB / 0.8464 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.5581, allocations: 9.031 kB / 0.8464 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.219e-06/0.5581, allocations: 6.203 kB / 0.8465 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.5581, allocations: 6.094 kB / 0.8465 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.5592, allocations: 0.7632 MB / 0.8472 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002792/0.5595, allocations: 226.7 kB / 0.8474 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.5596, allocations: 11.44 kB / 0.8474 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.5601, allocations: 31.69 kB / 0.8475 GB, free: 10 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.633e-05/0.5601, allocations: 31.73 kB / 0.8475 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/0.5602, allocations: 20.3 kB / 0.8475 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007827/0.561, allocations: 0.656 MB / 0.8481 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.561, allocations: 0.9062 kB / 0.8482 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009313/0.5619, allocations: 344.4 kB / 0.8485 GB, free: 9.508 MB / 0.6075 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.001986/0.5639, allocations: 1.592 MB / 0.85 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007935/0.5647, allocations: 428.5 kB / 0.8504 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5647, allocations: 1.094 kB / 0.8504 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.5651, allocations: 188 kB / 0.8506 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/0.5673, allocations: 0.6085 MB / 0.8512 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008251/0.5756, allocations: 6.81 MB / 0.8579 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005419/0.5762, allocations: 1.037 MB / 0.8589 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0006507/0.5768, allocations: 203.7 kB / 0.8591 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004147/0.5772, allocations: 371.2 kB / 0.8594 GB, free: 2.172 MB / 0.6075 GB Notification: Performance of SimCode: time 5.41e-07/0.5772, allocations: 0 / 0.8594 GB, free: 2.172 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05307/0.6303, allocations: 30.21 MB / 0.8889 GB, free: 4.844 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.787/9.417, allocations: 8.75 kB / 0.8889 GB, free: 4.84 MB / 0.6387 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)