Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_10_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.00112/0.00112, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008394/0.008394, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.4/1.4, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.611/2.611, allocations: 437.8 MB / 0.7121 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004063, allocations: 8 kB / 0.8729 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6645/0.6649, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04311/0.7081, allocations: 40.49 MB / 1.063 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01529/0.7234, allocations: 10.36 MB / 1.073 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002334/0.7258, allocations: 47.69 kB / 1.073 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.7276, allocations: 0.5361 MB / 1.073 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005149/0.7327, allocations: 1.731 MB / 1.075 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.7357, allocations: 1.082 MB / 1.076 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.005565/0.7412, allocations: 4.522 MB / 1.081 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001611/0.7429, allocations: 0.8484 MB / 1.081 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002405/0.7453, allocations: 1.011 MB / 1.082 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00169/0.747, allocations: 0.8592 MB / 1.083 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.7472, allocations: 40 kB / 1.083 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002193/0.7494, allocations: 0.7755 MB / 1.084 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000275/0.7497, allocations: 207 kB / 1.084 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0007651/0.7504, allocations: 0.5769 MB / 1.085 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002238/0.7527, allocations: 1.838 MB / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.7527, allocations: 3.938 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.825e-06/0.7527, allocations: 0 / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.903e-05/0.7527, allocations: 0 / 1.087 GB, free: 14.72 MB / 0.8419 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.002499/0.7553, allocations: 1.301 MB / 1.088 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.7553, allocations: 8.031 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001422/0.7555, allocations: 114.7 kB / 1.088 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003306/0.7558, allocations: 135.4 kB / 1.088 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001786/0.7576, allocations: 1.08 MB / 1.089 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/0.7577, allocations: 54 kB / 1.089 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.7578, allocations: 79.89 kB / 1.089 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.7593, allocations: 0.8022 MB / 1.09 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.7593, allocations: 0 / 1.09 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.771e-05/0.7594, allocations: 28 kB / 1.09 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.749e-05/0.7594, allocations: 24 kB / 1.09 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.7606, allocations: 0.5945 MB / 1.091 GB, free: 10.38 MB / 0.8419 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.00431/0.765, allocations: 3.548 MB / 1.094 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006132/0.7656, allocations: 274.9 kB / 1.094 GB, free: 6.32 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003841/0.766, allocations: 184.8 kB / 1.095 GB, free: 6.137 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005587/0.7665, allocations: 0.6609 MB / 1.095 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.038e-05/0.7666, allocations: 38.56 kB / 1.095 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.044e-06/0.7666, allocations: 0 / 1.095 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001245/0.7679, allocations: 0.5359 MB / 1.096 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.7679, allocations: 63.34 kB / 1.096 GB, free: 4.664 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.7692, allocations: 0.9338 MB / 1.097 GB, free: 3.711 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.265e-05/0.7693, allocations: 33.7 kB / 1.097 GB, free: 3.672 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004586/0.7698, allocations: 499.6 kB / 1.097 GB, free: 3.176 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.7699, allocations: 110.4 kB / 1.097 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.534e-05/0.77, allocations: 53.69 kB / 1.097 GB, free: 3.008 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.7701, allocations: 329.9 kB / 1.098 GB, free: 2.68 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003935/0.7705, allocations: 177 kB / 1.098 GB, free: 2.508 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.7711, allocations: 358.9 kB / 1.098 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009084/0.772, allocations: 0.5344 MB / 1.099 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.772, allocations: 4 kB / 1.099 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001214/0.7732, allocations: 0.6369 MB / 1.099 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.7733, allocations: 12.12 kB / 1.099 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.7733, allocations: 4 kB / 1.099 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.7733, allocations: 8 kB / 1.099 GB, free: 0.8047 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004649/0.7738, allocations: 127.8 kB / 1.1 GB, free: 0.6797 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.905e-05/0.7738, allocations: 15.92 kB / 1.1 GB, free: 0.6641 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007394/0.7745, allocations: 119.1 kB / 1.1 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/0.7746, allocations: 35.94 kB / 1.1 GB, free: 0.5117 MB / 0.8419 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.0004318/0.7751, allocations: 269.6 kB / 1.1 GB, free: 244 kB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.7752, allocations: 98.84 kB / 1.1 GB, free: 144 kB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.7763, allocations: 0.5005 MB / 1.101 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.7764, allocations: 11.98 kB / 1.101 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.7764, allocations: 0 / 1.101 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008044/0.7772, allocations: 477.2 kB / 1.101 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.7796, allocations: 1.375 MB / 1.102 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.7796, allocations: 7.938 kB / 1.102 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003496/0.78, allocations: 87.98 kB / 1.102 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.78, allocations: 4 kB / 1.102 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.78, allocations: 11.98 kB / 1.102 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.78, allocations: 0 / 1.102 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.381e-06/0.78, allocations: 4 kB / 1.102 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.7815, allocations: 0.7934 MB / 1.103 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004214/0.7819, allocations: 251.6 kB / 1.103 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.7821, allocations: 8 kB / 1.103 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006462/0.7827, allocations: 61.08 kB / 1.104 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.681e-05/0.7828, allocations: 31.95 kB / 1.104 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.084e-05/0.7829, allocations: 15.98 kB / 1.104 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0009793/0.7839, allocations: 0.6471 MB / 1.104 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7839, allocations: 0 / 1.104 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001131/0.785, allocations: 331.5 kB / 1.105 GB, free: 11.38 MB / 0.8575 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.00286/0.7879, allocations: 1.623 MB / 1.106 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001126/0.789, allocations: 441.4 kB / 1.107 GB, free: 9.293 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.789, allocations: 4 kB / 1.107 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004426/0.7895, allocations: 192.6 kB / 1.107 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00339/0.7929, allocations: 0.6035 MB / 1.107 GB, free: 8.508 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01437/0.8073, allocations: 7.577 MB / 1.115 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007332/0.808, allocations: 1.032 MB / 1.116 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000894/0.8089, allocations: 204.1 kB / 1.116 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004926/0.8095, allocations: 375.3 kB / 1.116 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of SimCode: time 9.41e-07/0.8095, allocations: 0 / 1.116 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05425/0.8637, allocations: 28.31 MB / 1.144 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.864, allocations: 257.9 kB / 1.144 GB, free: 2.762 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.777/3.641, allocations: 0 / 1.144 GB, free: 2.762 MB / 0.8887 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches