Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.851/2.851, allocations: 287.3 MB / 302.3 MB, free: 8.398 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.00156, allocations: 178.8 kB / 370.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.279/2.279, allocations: 205.4 MB / 0.6295 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 93.11 kB / 0.7428 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006451/0.0006452, allocations: 16.58 kB / 0.8657 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2123, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04616/0.2585, allocations: 34.81 MB / 1.012 GB, free: 9.41 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.02001/0.2786, allocations: 8.864 MB / 1.021 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.2806, allocations: 47.62 kB / 1.021 GB, free: 496 kB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.003174/0.2838, allocations: 0.6142 MB / 1.022 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.007972/0.2918, allocations: 1.786 MB / 1.023 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.006328/0.2982, allocations: 1.354 MB / 1.025 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.005519/0.3037, allocations: 1.962 MB / 1.027 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.3057, allocations: 0.7534 MB / 1.027 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003039/0.3088, allocations: 0.8836 MB / 1.028 GB, free: 9.141 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001606/0.3105, allocations: 0.5443 MB / 1.029 GB, free: 8.594 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0003068/0.3108, allocations: 36 kB / 1.029 GB, free: 8.559 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002976/0.3138, allocations: 0.5461 MB / 1.029 GB, free: 8.012 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0004904/0.3144, allocations: 195.2 kB / 1.029 GB, free: 7.82 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0005723/0.315, allocations: 257.1 kB / 1.03 GB, free: 7.562 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.003413/0.3184, allocations: 1.352 MB / 1.031 GB, free: 6.207 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3184, allocations: 0 / 1.031 GB, free: 6.207 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.756e-06/0.3185, allocations: 0 / 1.031 GB, free: 6.207 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.729e-05/0.3185, allocations: 0 / 1.031 GB, free: 6.207 MB / 0.6511 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.003666/0.3222, allocations: 1.304 MB / 1.032 GB, free: 4.848 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.3223, allocations: 8.031 kB / 1.032 GB, free: 4.84 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003174/0.3226, allocations: 114.5 kB / 1.032 GB, free: 4.719 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005821/0.3232, allocations: 138.5 kB / 1.033 GB, free: 4.582 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002765/0.326, allocations: 0.9669 MB / 1.033 GB, free: 3.574 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.789e-05/0.3261, allocations: 54 kB / 1.034 GB, free: 3.52 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/0.3263, allocations: 72 kB / 1.034 GB, free: 3.449 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002305/0.3286, allocations: 0.7905 MB / 1.034 GB, free: 2.625 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.76e-05/0.3287, allocations: 3.906 kB / 1.034 GB, free: 2.621 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.3288, allocations: 28 kB / 1.034 GB, free: 2.594 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.593e-05/0.3289, allocations: 28 kB / 1.034 GB, free: 2.566 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002015/0.3309, allocations: 0.5827 MB / 1.035 GB, free: 1.984 MB / 0.6511 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.00706/0.338, allocations: 3.579 MB / 1.038 GB, free: 14.18 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009498/0.339, allocations: 269.2 kB / 1.039 GB, free: 13.91 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007368/0.3397, allocations: 0.6532 MB / 1.039 GB, free: 13.11 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/0.3398, allocations: 47.08 kB / 1.039 GB, free: 13.05 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=31): time 4.128e-06/0.3398, allocations: 0 / 1.039 GB, free: 13.05 MB / 0.6667 GB Notification: Performance of matching and sorting (n=31): time 0.002105/0.3419, allocations: 0.5431 MB / 1.04 GB, free: 12.5 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/0.342, allocations: 59.36 kB / 1.04 GB, free: 12.43 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002059/0.3441, allocations: 0.9605 MB / 1.041 GB, free: 11.45 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.3442, allocations: 33.7 kB / 1.041 GB, free: 11.41 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006082/0.3449, allocations: 499.6 kB / 1.041 GB, free: 10.92 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.3451, allocations: 118.3 kB / 1.042 GB, free: 10.8 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.618e-05/0.3451, allocations: 8 kB / 1.042 GB, free: 10.79 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3453, allocations: 326 kB / 1.042 GB, free: 10.47 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006732/0.346, allocations: 177 kB / 1.042 GB, free: 10.3 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008319/0.3468, allocations: 362.8 kB / 1.042 GB, free: 9.867 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007838/0.3476, allocations: 227.8 kB / 1.043 GB, free: 9.645 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3476, allocations: 0 / 1.043 GB, free: 9.645 MB / 0.6667 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002052/0.3497, allocations: 0.6327 MB / 1.043 GB, free: 9.004 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.3498, allocations: 10.19 kB / 1.043 GB, free: 8.996 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.3498, allocations: 4 kB / 1.043 GB, free: 8.992 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.67e-05/0.3498, allocations: 12.44 kB / 1.043 GB, free: 8.98 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008619/0.3507, allocations: 131.8 kB / 1.043 GB, free: 8.852 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.307e-05/0.3507, allocations: 8 kB / 1.043 GB, free: 8.844 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.3521, allocations: 127.1 kB / 1.044 GB, free: 8.719 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.347e-05/0.3522, allocations: 24 kB / 1.044 GB, free: 8.695 MB / 0.6667 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006263/0.3528, allocations: 277.6 kB / 1.044 GB, free: 8.414 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/0.3531, allocations: 102.8 kB / 1.044 GB, free: 8.312 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.3548, allocations: 492.2 kB / 1.044 GB, free: 7.82 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.3549, allocations: 7.984 kB / 1.044 GB, free: 7.812 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.3549, allocations: 4 kB / 1.044 GB, free: 7.809 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001301/0.3562, allocations: 468.9 kB / 1.045 GB, free: 7.32 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003702/0.36, allocations: 1.406 MB / 1.046 GB, free: 5.844 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.36, allocations: 0 / 1.046 GB, free: 5.844 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006551/0.3607, allocations: 83.89 kB / 1.046 GB, free: 5.762 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.044e-05/0.3607, allocations: 7.891 kB / 1.046 GB, free: 5.754 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.3608, allocations: 11.98 kB / 1.046 GB, free: 5.742 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/0.3608, allocations: 8.156 kB / 1.046 GB, free: 5.734 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.3608, allocations: 3.938 kB / 1.046 GB, free: 5.73 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002388/0.3632, allocations: 0.8475 MB / 1.047 GB, free: 4.828 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007471/0.364, allocations: 255.7 kB / 1.047 GB, free: 4.559 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001949/0.3642, allocations: 12.06 kB / 1.047 GB, free: 4.547 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.3653, allocations: 59.88 kB / 1.047 GB, free: 4.488 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.3654, allocations: 31.86 kB / 1.047 GB, free: 4.457 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.443e-05/0.3655, allocations: 19.98 kB / 1.047 GB, free: 4.438 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001549/0.3671, allocations: 0.6704 MB / 1.048 GB, free: 3.758 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.8e-07/0.3671, allocations: 0 / 1.048 GB, free: 3.758 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001722/0.3688, allocations: 339.4 kB / 1.048 GB, free: 3.426 MB / 0.6667 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003937/0.3728, allocations: 2.016 MB / 1.05 GB, free: 1.355 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001604/0.3744, allocations: 440.1 kB / 1.051 GB, free: 0.9258 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.3745, allocations: 0 / 1.051 GB, free: 0.9258 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006998/0.3752, allocations: 201.1 kB / 1.051 GB, free: 0.7305 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005139/0.3803, allocations: 0.5934 MB / 1.052 GB, free: 144 kB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007414/0.3878, allocations: 5.952 MB / 1.057 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008929/0.3888, allocations: 1.063 MB / 1.058 GB, free: 8.918 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001348/0.3901, allocations: 206.1 kB / 1.059 GB, free: 8.719 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007814/0.3909, allocations: 367.3 kB / 1.059 GB, free: 8.359 MB / 0.6823 GB Notification: Performance of SimCode: time 1.012e-06/0.3909, allocations: 0 / 1.059 GB, free: 8.359 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7203/1.111, allocations: 28.98 MB / 1.087 GB, free: 84.76 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/1.112, allocations: 235.5 kB / 1.088 GB, free: 84.52 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.567/4.678, allocations: 1.062 kB / 1.088 GB, free: 84.52 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)