Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_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.0007791/0.0007791, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0008196/0.0008196, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.514/2.514, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003521, allocations: 12 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7416/0.742, allocations: 142.3 MB / 0.9539 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03788/0.7799, allocations: 38.31 MB / 0.9913 GB, free: 9.602 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01568/0.7957, allocations: 9.747 MB / 1.001 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002638/0.7984, allocations: 47.69 kB / 1.001 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00174/0.8001, allocations: 469 kB / 1.001 GB, free: 15.48 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005271/0.8054, allocations: 1.461 MB / 1.003 GB, free: 14.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002905/0.8083, allocations: 0.8656 MB / 1.004 GB, free: 13.16 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.005682/0.814, allocations: 3.857 MB / 1.007 GB, free: 9.297 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001696/0.8157, allocations: 0.736 MB / 1.008 GB, free: 8.555 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002374/0.8181, allocations: 0.9877 MB / 1.009 GB, free: 7.562 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001647/0.8198, allocations: 0.8049 MB / 1.01 GB, free: 6.754 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0002653/0.8201, allocations: 40 kB / 1.01 GB, free: 6.715 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001881/0.822, allocations: 494.8 kB / 1.01 GB, free: 6.23 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.000385/0.8224, allocations: 203.1 kB / 1.01 GB, free: 6.031 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0005558/0.823, allocations: 265.1 kB / 1.011 GB, free: 5.766 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.001983/0.8249, allocations: 1.364 MB / 1.012 GB, free: 4.398 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.825, allocations: 0 / 1.012 GB, free: 4.398 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.573e-06/0.825, allocations: 0 / 1.012 GB, free: 4.398 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.334e-05/0.825, allocations: 0 / 1.012 GB, free: 4.398 MB / 0.7637 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.002445/0.8275, allocations: 1.316 MB / 1.013 GB, free: 3.027 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.8275, allocations: 8.031 kB / 1.013 GB, free: 3.02 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001979/0.8277, allocations: 114.5 kB / 1.013 GB, free: 2.898 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003681/0.8281, allocations: 130.6 kB / 1.014 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.8301, allocations: 1.056 MB / 1.015 GB, free: 1.672 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.081e-05/0.8301, allocations: 50 kB / 1.015 GB, free: 1.621 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.8303, allocations: 75.91 kB / 1.015 GB, free: 1.547 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.8318, allocations: 0.7944 MB / 1.016 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.8319, allocations: 4 kB / 1.016 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.549e-05/0.8319, allocations: 28 kB / 1.016 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-05/0.832, allocations: 24 kB / 1.016 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.8332, allocations: 0.5867 MB / 1.016 GB, free: 80 kB / 0.7637 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.004522/0.8377, allocations: 3.552 MB / 1.02 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005886/0.8383, allocations: 275.3 kB / 1.02 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.8387, allocations: 184.8 kB / 1.02 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005677/0.8393, allocations: 0.6571 MB / 1.021 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.8393, allocations: 34.56 kB / 1.021 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 2.023e-06/0.8393, allocations: 0 / 1.021 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.00121/0.8405, allocations: 0.5553 MB / 1.021 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.8406, allocations: 59.41 kB / 1.021 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.8419, allocations: 0.9221 MB / 1.022 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.217e-05/0.8419, allocations: 33.7 kB / 1.022 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000447/0.8424, allocations: 499.6 kB / 1.023 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.8425, allocations: 118.4 kB / 1.023 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/0.8426, allocations: 12 kB / 1.023 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.8427, allocations: 322 kB / 1.023 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003788/0.8431, allocations: 173 kB / 1.023 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/0.8436, allocations: 366.9 kB / 1.024 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004485/0.8441, allocations: 227.8 kB / 1.024 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.8441, allocations: 0 / 1.024 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00118/0.8453, allocations: 0.6367 MB / 1.025 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.8453, allocations: 5.25 kB / 1.025 GB, free: 6.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.8453, allocations: 11.94 kB / 1.025 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.8453, allocations: 8 kB / 1.025 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004543/0.8458, allocations: 135.8 kB / 1.025 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.011e-05/0.8458, allocations: 12.3 kB / 1.025 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007385/0.8466, allocations: 115.2 kB / 1.025 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.8467, allocations: 31.98 kB / 1.025 GB, free: 6.648 MB / 0.7794 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.00041/0.8471, allocations: 277.6 kB / 1.025 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.8472, allocations: 98.78 kB / 1.025 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009736/0.8482, allocations: 0.4926 MB / 1.026 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.8482, allocations: 4 kB / 1.026 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.8483, allocations: 7.938 kB / 1.026 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006993/0.849, allocations: 465.5 kB / 1.026 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.8513, allocations: 1.37 MB / 1.027 GB, free: 3.832 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.8513, allocations: 7.953 kB / 1.027 GB, free: 3.824 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003485/0.8517, allocations: 87.98 kB / 1.028 GB, free: 3.738 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.8517, allocations: 4 kB / 1.028 GB, free: 3.734 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.8517, allocations: 8 kB / 1.028 GB, free: 3.727 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-06/0.8517, allocations: 3.984 kB / 1.028 GB, free: 3.723 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.8517, allocations: 7.938 kB / 1.028 GB, free: 3.715 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.853, allocations: 0.7866 MB / 1.028 GB, free: 2.898 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003914/0.8534, allocations: 247.8 kB / 1.029 GB, free: 2.637 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.8536, allocations: 11.98 kB / 1.029 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005606/0.8541, allocations: 55.95 kB / 1.029 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.038e-05/0.8542, allocations: 23.91 kB / 1.029 GB, free: 2.547 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.8543, allocations: 19.98 kB / 1.029 GB, free: 2.527 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0009701/0.8552, allocations: 0.6432 MB / 1.029 GB, free: 1.875 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8552, allocations: 0 / 1.029 GB, free: 1.875 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001046/0.8563, allocations: 335.4 kB / 1.03 GB, free: 1.547 MB / 0.7794 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.002204/0.8585, allocations: 1.605 MB / 1.031 GB, free: 15.91 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009082/0.8594, allocations: 440 kB / 1.032 GB, free: 15.48 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.8595, allocations: 0 / 1.032 GB, free: 15.48 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003768/0.8598, allocations: 192.6 kB / 1.032 GB, free: 15.29 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002994/0.8628, allocations: 0.6023 MB / 1.032 GB, free: 14.7 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.874, allocations: 5.471 MB / 1.038 GB, free: 8.945 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007061/0.8747, allocations: 1.036 MB / 1.039 GB, free: 7.879 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0009344/0.8757, allocations: 199.8 kB / 1.039 GB, free: 7.684 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005152/0.8762, allocations: 375.3 kB / 1.039 GB, free: 7.316 MB / 0.795 GB Notification: Performance of SimCode: time 8.92e-07/0.8762, allocations: 0 / 1.039 GB, free: 7.316 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05178/0.928, allocations: 28.94 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.9282, allocations: 246.9 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.372/3.3, allocations: 0 / 1.068 GB, free: 10.57 MB / 0.8262 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat does not exist to compare? outputFormat=mat