Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.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.HeatExchangers.BaseClasses.Examples.HexElementLatent,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent",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: 100.2 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.001225/0.001225, allocations: 177.3 kB / 15.95 MB, free: 216 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.408/1.408, allocations: 223.2 MB / 239.9 MB, free: 5.441 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.426/2.426, allocations: 390.3 MB / 0.6653 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003588, allocations: 8 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7127/0.7131, allocations: 142.3 MB / 0.9536 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.2601/0.9733, allocations: 209.9 MB / 1.159 GB, free: 13.77 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02423/0.9976, allocations: 15.85 MB / 1.174 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003139/1.001, allocations: 71.5 kB / 1.174 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0038/1.005, allocations: 0.9874 MB / 1.175 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.01126/1.016, allocations: 3.275 MB / 1.178 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.006337/1.022, allocations: 1.823 MB / 1.18 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.007292/1.03, allocations: 3.033 MB / 1.183 GB, free: 4.707 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002788/1.032, allocations: 1.314 MB / 1.184 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004307/1.037, allocations: 1.573 MB / 1.186 GB, free: 1.793 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002373/1.039, allocations: 0.9685 MB / 1.187 GB, free: 0.8203 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.00033/1.039, allocations: 72 kB / 1.187 GB, free: 0.75 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003945/1.043, allocations: 1.299 MB / 1.188 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0005968/1.044, allocations: 430.5 kB / 1.189 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0008748/1.045, allocations: 436.6 kB / 1.189 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00388/1.049, allocations: 2.443 MB / 1.191 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/1.049, allocations: 0 / 1.191 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.535e-06/1.049, allocations: 4 kB / 1.191 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.587e-05/1.049, allocations: 0 / 1.191 GB, free: 12.14 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.004757/1.054, allocations: 2.082 MB / 1.193 GB, free: 10 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/1.054, allocations: 12.03 kB / 1.193 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00034/1.054, allocations: 202.8 kB / 1.194 GB, free: 9.785 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/1.056, allocations: 377.1 kB / 1.194 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00261/1.059, allocations: 1.337 MB / 1.195 GB, free: 8.023 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/1.059, allocations: 102.7 kB / 1.195 GB, free: 7.922 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/1.059, allocations: 136 kB / 1.196 GB, free: 7.789 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00277/1.062, allocations: 1.499 MB / 1.197 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/1.062, allocations: 7.891 kB / 1.197 GB, free: 6.215 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/1.062, allocations: 56 kB / 1.197 GB, free: 6.16 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.59e-05/1.062, allocations: 58.62 kB / 1.197 GB, free: 6.102 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00223/1.064, allocations: 1.146 MB / 1.198 GB, free: 4.949 MB / 0.9512 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.009617/1.074, allocations: 7.312 MB / 1.205 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/1.075, allocations: 0.871 MB / 1.206 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007379/1.076, allocations: 0.5499 MB / 1.207 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/1.076, allocations: 51.17 kB / 1.207 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=74): time 3.056e-06/1.076, allocations: 4 kB / 1.207 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of matching and sorting (n=74): time 0.007344/1.084, allocations: 2.194 MB / 1.209 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/1.084, allocations: 60.06 kB / 1.209 GB, free: 9.086 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002006/1.086, allocations: 1.317 MB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001224/1.086, allocations: 45.7 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006996/1.087, allocations: 0.8034 MB / 1.211 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002948/1.087, allocations: 256.3 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.538e-05/1.087, allocations: 20 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001712/1.087, allocations: 334 kB / 1.212 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006255/1.088, allocations: 333.8 kB / 1.212 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008402/1.089, allocations: 0.5638 MB / 1.213 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007501/1.089, allocations: 418.8 kB / 1.213 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.089, allocations: 0 / 1.213 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002594/1.092, allocations: 1.279 MB / 1.214 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.001049/1.093, allocations: 1.979 MB / 1.216 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/1.093, allocations: 4 kB / 1.216 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001983/1.095, allocations: 418.6 kB / 1.217 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000634/1.096, allocations: 155.8 kB / 1.217 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/1.097, allocations: 2.057 MB / 1.219 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/1.099, allocations: 183 kB / 1.219 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.307e-05/1.099, allocations: 43.98 kB / 1.219 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/1.099, allocations: 9.969 kB / 1.219 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001958/1.101, allocations: 1.06 MB / 1.22 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/1.101, allocations: 4 kB / 1.22 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/1.103, allocations: 375.6 kB / 1.22 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006092/1.103, allocations: 155.8 kB / 1.22 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/1.107, allocations: 3.879 MB / 1.224 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/1.108, allocations: 180.5 kB / 1.224 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.332e-05/1.108, allocations: 43.97 kB / 1.224 GB, free: 8.5 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (79): * Single equations (assignments): 75 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 21,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009707/1.109, allocations: 464.9 kB / 1.225 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002756/1.11, allocations: 158 kB / 1.225 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002839/1.112, allocations: 1.23 MB / 1.226 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/1.112, allocations: 8 kB / 1.226 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/1.112, allocations: 3.938 kB / 1.226 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002418/1.115, allocations: 1.322 MB / 1.228 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004681/1.12, allocations: 2.736 MB / 1.23 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.443e-06/1.12, allocations: 4 kB / 1.23 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004654/1.12, allocations: 112.2 kB / 1.23 GB, free: 2.242 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001463/1.122, allocations: 366.1 kB / 1.231 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/1.122, allocations: 16 kB / 1.231 GB, free: 1.859 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/1.123, allocations: 2.044 MB / 1.233 GB, free: 15.74 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/1.123, allocations: 4.031 kB / 1.233 GB, free: 15.74 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/1.125, allocations: 1.398 MB / 1.234 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007115/1.126, allocations: 358.7 kB / 1.234 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/1.126, allocations: 19.95 kB / 1.234 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009974/1.127, allocations: 117.2 kB / 1.235 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/1.127, allocations: 56.42 kB / 1.235 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.495e-05/1.128, allocations: 31.98 kB / 1.235 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001252/1.129, allocations: 0.8899 MB / 1.235 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.81e-07/1.129, allocations: 0 / 1.235 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002526/1.131, allocations: 0.9155 MB / 1.236 GB, free: 11.81 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 simulation (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 21,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003183/1.135, allocations: 2.912 MB / 1.239 GB, free: 8.797 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003415/1.138, allocations: 1.669 MB / 1.241 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/1.138, allocations: 4.5 kB / 1.241 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001018/1.139, allocations: 486.4 kB / 1.241 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003706/1.143, allocations: 0.7765 MB / 1.242 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5387/1.681, allocations: 7.336 MB / 1.249 GB, free: 279.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/1.683, allocations: 1.381 MB / 1.251 GB, free: 278.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00186/1.685, allocations: 324 kB / 1.251 GB, free: 278.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009292/1.686, allocations: 0.6409 MB / 1.252 GB, free: 278.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.062e-06/1.686, allocations: 0 / 1.252 GB, free: 278.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08537/1.771, allocations: 43.98 MB / 1.294 GB, free: 255.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/1.771, allocations: 276.3 kB / 1.295 GB, free: 254.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.817/4.588, allocations: 0 / 1.295 GB, free: 254.9 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat does not exist to compare? outputFormat=mat