Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_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.0009672/0.0009672, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001211/0.001211, allocations: 172.7 kB / 15.95 MB, free: 208 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.43/1.43, allocations: 223.2 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.614/2.614, allocations: 409.4 MB / 0.684 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005305/0.0005307, allocations: 12 kB / 0.8378 GB, free: 6.516 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7488/0.7493, allocations: 146.8 MB / 0.9811 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03559/0.7849, allocations: 38.32 MB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01335/0.7983, allocations: 9.738 MB / 1.028 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001793/0.8002, allocations: 47.69 kB / 1.028 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001557/0.8017, allocations: 453.1 kB / 1.029 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004295/0.806, allocations: 1.484 MB / 1.03 GB, free: 4.082 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.8086, allocations: 0.8487 MB / 1.031 GB, free: 3.242 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004853/0.8134, allocations: 3.861 MB / 1.035 GB, free: 15.38 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.8146, allocations: 0.7358 MB / 1.035 GB, free: 14.62 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.8164, allocations: 0.9993 MB / 1.036 GB, free: 13.62 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.8176, allocations: 0.7971 MB / 1.037 GB, free: 12.82 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.878e-05/0.8177, allocations: 36 kB / 1.037 GB, free: 12.79 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001538/0.8192, allocations: 494.8 kB / 1.038 GB, free: 12.3 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.8195, allocations: 203.1 kB / 1.038 GB, free: 12.1 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002967/0.8198, allocations: 265.1 kB / 1.038 GB, free: 11.84 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.8213, allocations: 1.368 MB / 1.039 GB, free: 10.46 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.8213, allocations: 4 kB / 1.039 GB, free: 10.46 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.206e-06/0.8213, allocations: 3.984 kB / 1.039 GB, free: 10.46 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.756e-05/0.8213, allocations: 0 / 1.039 GB, free: 10.46 MB / 0.795 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.002194/0.8235, allocations: 1.312 MB / 1.041 GB, free: 9.09 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.8236, allocations: 12.03 kB / 1.041 GB, free: 9.078 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001444/0.8237, allocations: 110.5 kB / 1.041 GB, free: 8.961 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003042/0.824, allocations: 142.4 kB / 1.041 GB, free: 8.82 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001641/0.8257, allocations: 1.041 MB / 1.042 GB, free: 7.738 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.08e-05/0.8257, allocations: 57.94 kB / 1.042 GB, free: 7.68 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.8259, allocations: 72 kB / 1.042 GB, free: 7.609 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.8274, allocations: 0.7905 MB / 1.043 GB, free: 6.789 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.8274, allocations: 0 / 1.043 GB, free: 6.789 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.797e-05/0.8275, allocations: 32 kB / 1.043 GB, free: 6.758 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.8275, allocations: 27.94 kB / 1.043 GB, free: 6.73 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.8286, allocations: 0.5867 MB / 1.043 GB, free: 6.145 MB / 0.795 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.003806/0.8324, allocations: 3.548 MB / 1.047 GB, free: 2.371 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005593/0.833, allocations: 282.5 kB / 1.047 GB, free: 2.086 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.8333, allocations: 188.7 kB / 1.047 GB, free: 1.898 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004646/0.8338, allocations: 0.6532 MB / 1.048 GB, free: 1.098 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.8338, allocations: 42.56 kB / 1.048 GB, free: 1.047 MB / 0.795 GB Notification: Performance of pre-optimization done (n=31): time 3.837e-06/0.8338, allocations: 3.984 kB / 1.048 GB, free: 1.043 MB / 0.795 GB Notification: Performance of matching and sorting (n=31): time 0.001059/0.8349, allocations: 0.5442 MB / 1.049 GB, free: 0.4922 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.8349, allocations: 59.33 kB / 1.049 GB, free: 432 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.836, allocations: 0.9222 MB / 1.05 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.836, allocations: 37.7 kB / 1.05 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003753/0.8364, allocations: 499.5 kB / 1.05 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.8365, allocations: 114.4 kB / 1.05 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.309e-05/0.8365, allocations: 8 kB / 1.05 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.8367, allocations: 326 kB / 1.05 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003368/0.837, allocations: 177 kB / 1.051 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004338/0.8375, allocations: 355 kB / 1.051 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/0.8379, allocations: 239.7 kB / 1.051 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.8379, allocations: 0 / 1.051 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001004/0.8389, allocations: 0.6329 MB / 1.052 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.8389, allocations: 8 kB / 1.052 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.8389, allocations: 4 kB / 1.052 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.839, allocations: 12 kB / 1.052 GB, free: 13 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000419/0.8394, allocations: 131.7 kB / 1.052 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.8394, allocations: 11.94 kB / 1.052 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006219/0.84, allocations: 119.4 kB / 1.052 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.8401, allocations: 28 kB / 1.052 GB, free: 12.72 MB / 0.8106 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.0003383/0.8404, allocations: 281.5 kB / 1.052 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.8406, allocations: 102.7 kB / 1.052 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009032/0.8415, allocations: 0.4988 MB / 1.053 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.8415, allocations: 8 kB / 1.053 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.8415, allocations: 0 / 1.053 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006908/0.8422, allocations: 465.5 kB / 1.053 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.8442, allocations: 1.374 MB / 1.055 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.8442, allocations: 0 / 1.055 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00032/0.8445, allocations: 88.05 kB / 1.055 GB, free: 9.809 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.8445, allocations: 0 / 1.055 GB, free: 9.809 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.8446, allocations: 11.98 kB / 1.055 GB, free: 9.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.8446, allocations: 4 kB / 1.055 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.8446, allocations: 4 kB / 1.055 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.8458, allocations: 0.7933 MB / 1.056 GB, free: 8.965 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.8462, allocations: 243.7 kB / 1.056 GB, free: 8.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.8463, allocations: 12.06 kB / 1.056 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005403/0.8468, allocations: 59.86 kB / 1.056 GB, free: 8.637 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.622e-05/0.8469, allocations: 27.95 kB / 1.056 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-05/0.847, allocations: 15.98 kB / 1.056 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008559/0.8478, allocations: 0.6393 MB / 1.057 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8478, allocations: 0 / 1.057 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001037/0.8489, allocations: 327.5 kB / 1.057 GB, free: 7.625 MB / 0.8106 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.002094/0.851, allocations: 1.607 MB / 1.058 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008708/0.8519, allocations: 440.3 kB / 1.059 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.8519, allocations: 0 / 1.059 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.8523, allocations: 196.6 kB / 1.059 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002599/0.8549, allocations: 0.5854 MB / 1.06 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009731/0.8646, allocations: 5.483 MB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006193/0.8653, allocations: 1.036 MB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0009202/0.8662, allocations: 193.7 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005098/0.8667, allocations: 371.3 kB / 1.067 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of SimCode: time 9.62e-07/0.8667, allocations: 4 kB / 1.067 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05428/0.921, allocations: 28.95 MB / 1.095 GB, free: 0.8789 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/0.9213, allocations: 240.7 kB / 1.095 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.452/3.373, allocations: 3.75 kB / 1.095 GB, free: 0.6055 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat does not exist to compare? outputFormat=mat