Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier.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.ReverseFlowHumidifier,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowHumidifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowHumidifier",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.001402/0.001402, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001488/0.001488, allocations: 177.3 kB / 15.94 MB, free: 228 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.322/1.322, allocations: 223.2 MB / 239.9 MB, free: 5.262 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.361/2.361, allocations: 390.3 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003354, allocations: 8 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6749/0.6753, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier): time 0.2549/0.9302, allocations: 223.7 MB / 1.172 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02302/0.9533, allocations: 15.85 MB / 1.188 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.9555, allocations: 51.62 kB / 1.188 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.003399/0.9589, allocations: 1.003 MB / 1.189 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.009883/0.9689, allocations: 3.018 MB / 1.192 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.005629/0.9745, allocations: 1.762 MB / 1.193 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.005793/0.9803, allocations: 2.727 MB / 1.196 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002285/0.9826, allocations: 1.33 MB / 1.197 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004128/0.9868, allocations: 1.596 MB / 1.199 GB, free: 4.48 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002293/0.9891, allocations: 0.9415 MB / 1.2 GB, free: 3.535 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0003122/0.9894, allocations: 72 kB / 1.2 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004213/0.9936, allocations: 1.322 MB / 1.201 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0008286/0.9945, allocations: 0.5453 MB / 1.202 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0009382/0.9954, allocations: 432.7 kB / 1.202 GB, free: 1.164 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.004127/0.9996, allocations: 2.447 MB / 1.204 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.9996, allocations: 0 / 1.204 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.579e-06/0.9996, allocations: 0 / 1.204 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.04e-05/0.9997, allocations: 3.938 kB / 1.204 GB, free: 14.71 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 324 * Number of variables: 324 Notification: Performance of Generate backend data structure: time 0.004259/1.004, allocations: 1.999 MB / 1.206 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.878e-05/1.004, allocations: 8.031 kB / 1.206 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003165/1.004, allocations: 194.1 kB / 1.207 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004509/1.009, allocations: 0.6572 MB / 1.207 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00284/1.012, allocations: 1.281 MB / 1.208 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.033e-05/1.012, allocations: 102.5 kB / 1.209 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002559/1.012, allocations: 136 kB / 1.209 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002948/1.015, allocations: 1.557 MB / 1.21 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/1.015, allocations: 4 kB / 1.21 GB, free: 8.574 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/1.015, allocations: 55.95 kB / 1.21 GB, free: 8.52 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.116e-05/1.015, allocations: 50.44 kB / 1.21 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002179/1.017, allocations: 1.263 MB / 1.212 GB, free: 7.199 MB / 0.9669 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.009814/1.027, allocations: 7.226 MB / 1.219 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/1.028, allocations: 0.6294 MB / 1.219 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.726e-05/1.029, allocations: 28.53 kB / 1.219 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/1.029, allocations: 39.12 kB / 1.219 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008206/1.029, allocations: 155 kB / 1.219 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=67): time 3.367e-06/1.029, allocations: 0 / 1.219 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=67): time 0.001965/1.031, allocations: 1.016 MB / 1.22 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/1.031, allocations: 59.97 kB / 1.22 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001882/1.033, allocations: 1.331 MB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001128/1.034, allocations: 49.69 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006621/1.034, allocations: 0.7698 MB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002513/1.034, allocations: 248.4 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/1.034, allocations: 20 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001516/1.035, allocations: 345.9 kB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005458/1.035, allocations: 341.8 kB / 1.223 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008125/1.036, allocations: 0.671 MB / 1.224 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007046/1.037, allocations: 458.8 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/1.037, allocations: 4 kB / 1.225 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00183/1.039, allocations: 1.137 MB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.001144/1.04, allocations: 2.681 MB / 1.228 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/1.04, allocations: 8 kB / 1.228 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/1.04, allocations: 15.98 kB / 1.228 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009475/1.041, allocations: 211.7 kB / 1.228 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.961e-05/1.041, allocations: 15.94 kB / 1.229 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/1.042, allocations: 131.2 kB / 1.229 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.278e-05/1.043, allocations: 51.94 kB / 1.229 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/1.043, allocations: 4 kB / 1.229 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001557/1.044, allocations: 0.9759 MB / 1.23 GB, free: 3.699 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/1.044, allocations: 4 kB / 1.23 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/1.044, allocations: 16 kB / 1.23 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008499/1.045, allocations: 215.6 kB / 1.23 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.69e-05/1.045, allocations: 15.94 kB / 1.23 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/1.047, allocations: 140.1 kB / 1.23 GB, free: 3.316 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.441e-05/1.047, allocations: 43.98 kB / 1.23 GB, free: 3.273 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (121): * Single equations (assignments): 119 * Array equations: 2 * 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.0008745/1.047, allocations: 496.8 kB / 1.231 GB, free: 2.777 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002843/1.048, allocations: 154.2 kB / 1.231 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/1.049, allocations: 0.824 MB / 1.231 GB, free: 1.785 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/1.049, allocations: 8 kB / 1.231 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/1.049, allocations: 0 / 1.231 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001004/1.05, allocations: 0.7824 MB / 1.232 GB, free: 0.9453 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004048/1.054, allocations: 2.298 MB / 1.235 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/1.054, allocations: 3.984 kB / 1.235 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008774/1.055, allocations: 163.8 kB / 1.235 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.248e-05/1.055, allocations: 4.188 kB / 1.235 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.197e-05/1.055, allocations: 24 kB / 1.235 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.136e-05/1.055, allocations: 11.92 kB / 1.235 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.908e-06/1.055, allocations: 7.922 kB / 1.235 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/1.057, allocations: 1.336 MB / 1.236 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000723/1.058, allocations: 323.2 kB / 1.236 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001808/1.058, allocations: 19.94 kB / 1.236 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/1.059, allocations: 87.86 kB / 1.236 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.933e-05/1.06, allocations: 52.45 kB / 1.236 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.027e-05/1.06, allocations: 31.98 kB / 1.237 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001219/1.061, allocations: 0.8927 MB / 1.237 GB, free: 11.53 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.51e-07/1.061, allocations: 0 / 1.237 GB, free: 11.53 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002032/1.063, allocations: 0.8417 MB / 1.238 GB, free: 10.68 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (humBac.vol.dynBal.medium.Xi[1],humBac.vol.dynBal.U,humBac.vol.dynBal.m,humFor.vol.dynBal.medium.Xi[1],humFor.vol.dynBal.U,humFor.vol.dynBal.m) * 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 (71): * Single equations (assignments): 71 * 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 Backend phase and start with SimCode phase: time 0.002542/1.065, allocations: 2.441 MB / 1.241 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002092/1.068, allocations: 1.318 MB / 1.242 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.068, allocations: 1.812 kB / 1.242 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004771/1.068, allocations: 347 kB / 1.242 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003735/1.072, allocations: 0.8258 MB / 1.243 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4841/1.556, allocations: 8.941 MB / 1.252 GB, free: 279.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/1.557, allocations: 1.379 MB / 1.253 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002197/1.56, allocations: 413.9 kB / 1.253 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009346/1.56, allocations: 0.6141 MB / 1.254 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of SimCode: time 1.202e-06/1.56, allocations: 0.8125 kB / 1.254 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07908/1.64, allocations: 40.35 MB / 1.293 GB, free: 257.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/1.64, allocations: 232.6 kB / 1.294 GB, free: 257.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.647/4.287, allocations: 64 / 1.294 GB, free: 257.4 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowHumidifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowHumidifier.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowHumidifier_res.mat does not exist to compare? outputFormat=mat