Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.336/2.336, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 177 kB / 498.1 MB, free: 5.77 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.651/1.651, allocations: 223.1 MB / 0.7948 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001003, allocations: 94.67 kB / 0.9346 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003984/0.0003987, allocations: 15.05 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.324, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.563/5.887, allocations: 2.211 GB / 3.434 GB, free: 219.6 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/5.887, allocations: 106.2 kB / 3.434 GB, free: 219.6 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 6.645/12.53, allocations: 1.7 GB / 5.134 GB, free: 163.7 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.956e-06/12.53, allocations: 3.5 kB / 5.134 GB, free: 163.7 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0003189/12.53, allocations: 68.86 kB / 5.134 GB, free: 163.6 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.0134/12.55, allocations: 3.462 MB / 5.137 GB, free: 162.4 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/12.55, allocations: 10.84 kB / 5.137 GB, free: 162.4 MB / 1.198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001109/12.55, allocations: 263.3 kB / 5.137 GB, free: 162.3 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005863/12.55, allocations: 0.757 MB / 5.138 GB, free: 162.2 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008191/12.56, allocations: 2.85 MB / 5.141 GB, free: 161.7 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/12.56, allocations: 145.7 kB / 5.141 GB, free: 161.7 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004216/12.56, allocations: 190.9 kB / 5.141 GB, free: 161.7 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004081/12.57, allocations: 2.233 MB / 5.143 GB, free: 161.5 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.08e-05/12.57, allocations: 3.188 kB / 5.143 GB, free: 161.5 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/12.57, allocations: 76.06 kB / 5.143 GB, free: 161.5 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.924e-05/12.57, allocations: 77.39 kB / 5.144 GB, free: 161.5 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003605/12.57, allocations: 1.925 MB / 5.145 GB, free: 161.5 MB / 1.198 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.0132/12.58, allocations: 9.181 MB / 5.154 GB, free: 157.6 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/12.59, allocations: 1.026 MB / 5.155 GB, free: 157.6 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003996/12.59, allocations: 2.324 MB / 5.158 GB, free: 156.5 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/12.59, allocations: 52.94 kB / 5.158 GB, free: 156.4 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0013/12.59, allocations: 170.9 kB / 5.158 GB, free: 156.4 MB / 1.198 GB Notification: Performance of pre-optimization done (n=101): time 4.108e-06/12.59, allocations: 0 / 5.158 GB, free: 156.4 MB / 1.198 GB Notification: Performance of matching and sorting (n=103): time 0.01136/12.6, allocations: 3.996 MB / 5.162 GB, free: 155.5 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/12.6, allocations: 62.78 kB / 5.162 GB, free: 155.4 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003034/12.61, allocations: 1.807 MB / 5.164 GB, free: 155.2 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.000176/12.61, allocations: 54.02 kB / 5.164 GB, free: 155.2 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008938/12.61, allocations: 1.182 MB / 5.165 GB, free: 154.8 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/12.61, allocations: 360 kB / 5.165 GB, free: 154.6 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/12.61, allocations: 29.72 kB / 5.165 GB, free: 154.6 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001198/12.61, allocations: 364.1 kB / 5.166 GB, free: 154.3 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008351/12.61, allocations: 487.7 kB / 5.166 GB, free: 154.3 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/12.61, allocations: 1.044 MB / 5.167 GB, free: 153.6 MB / 1.198 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: fan.vol.dynBal.medium.p = fan.vol.dynBal.p_start (sin_2.p = fan.vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.009588/12.62, allocations: 2.193 MB / 5.169 GB, free: 153.5 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.37e-05/12.62, allocations: 3.062 kB / 5.169 GB, free: 153.5 MB / 1.198 GB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003653/12.62, allocations: 1.818 MB / 5.171 GB, free: 153.3 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001476/12.62, allocations: 5.97 MB / 5.177 GB, free: 147 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.773e-05/12.62, allocations: 15.12 kB / 5.177 GB, free: 147 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/12.63, allocations: 331.9 kB / 5.177 GB, free: 146.9 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/12.63, allocations: 300.3 kB / 5.177 GB, free: 146.9 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009444/12.63, allocations: 0.9741 MB / 5.178 GB, free: 146.4 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003096/12.63, allocations: 188 kB / 5.179 GB, free: 146.4 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/12.63, allocations: 75.33 kB / 5.179 GB, free: 146.4 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/12.63, allocations: 7.406 kB / 5.179 GB, free: 146.4 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002894/12.63, allocations: 1.576 MB / 5.18 GB, free: 146.4 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/12.63, allocations: 16.38 kB / 5.18 GB, free: 146.4 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001475/12.64, allocations: 340 kB / 5.18 GB, free: 146.4 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/12.64, allocations: 294.5 kB / 5.181 GB, free: 146.4 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/12.64, allocations: 0.974 MB / 5.182 GB, free: 145.8 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003202/12.64, allocations: 156.7 kB / 5.182 GB, free: 145.8 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001637/12.64, allocations: 74.03 kB / 5.182 GB, free: 145.8 MB / 1.198 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: fan.vol.dynBal.medium.p = fan.vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 (153): * Single equations (assignments): 151 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 22} Notification: Performance of prepare postOptimizeDAE: time 0.002232/12.64, allocations: 0.664 MB / 5.183 GB, free: 145.6 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007808/12.64, allocations: 233.9 kB / 5.183 GB, free: 145.5 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003187/12.65, allocations: 1.447 MB / 5.184 GB, free: 145.4 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/12.65, allocations: 12.5 kB / 5.184 GB, free: 145.4 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/12.65, allocations: 0 / 5.184 GB, free: 145.4 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001776/12.65, allocations: 1.105 MB / 5.185 GB, free: 145.3 MB / 1.198 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 postOpt removeSimpleEquations (simulation): time 0.007201/12.66, allocations: 3.9 MB / 5.189 GB, free: 144.6 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/12.66, allocations: 8.219 kB / 5.189 GB, free: 144.6 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000881/12.66, allocations: 181.6 kB / 5.189 GB, free: 144.6 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00136/12.66, allocations: 308.1 kB / 5.19 GB, free: 144.6 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.772e-05/12.66, allocations: 36.28 kB / 5.19 GB, free: 144.6 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008396/12.66, allocations: 0.9531 MB / 5.191 GB, free: 144.1 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/12.66, allocations: 5.562 kB / 5.191 GB, free: 144.1 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003425/12.66, allocations: 2.638 MB / 5.193 GB, free: 143 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/12.66, allocations: 440.6 kB / 5.194 GB, free: 142.7 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/12.66, allocations: 27.84 kB / 5.194 GB, free: 142.7 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/12.67, allocations: 113.6 kB / 5.194 GB, free: 142.7 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/12.67, allocations: 75.19 kB / 5.194 GB, free: 142.7 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.183e-05/12.67, allocations: 48.41 kB / 5.194 GB, free: 142.7 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.002128/12.67, allocations: 1.382 MB / 5.195 GB, free: 142.6 MB / 1.198 GB Notification: Performance of sort global known variables: time 4.11e-07/12.67, allocations: 3.969 kB / 5.195 GB, free: 142.6 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.005199/12.67, allocations: 1.402 MB / 5.197 GB, free: 142.5 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 2 (fan.vol.dynBal.medium.Xi[1],fan.vol.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 (84): * Single equations (assignments): 81 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.009789/12.68, allocations: 8.28 MB / 5.205 GB, free: 138.1 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.004547/12.69, allocations: 2.08 MB / 5.207 GB, free: 138 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/12.69, allocations: 0 / 5.207 GB, free: 138 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.001173/12.69, allocations: 0.5804 MB / 5.207 GB, free: 138 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006657/12.7, allocations: 1.297 MB / 5.208 GB, free: 138 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/12.71, allocations: 16.88 MB / 5.225 GB, free: 125 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/12.71, allocations: 1.73 MB / 5.227 GB, free: 124.2 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.003145/12.72, allocations: 0.5813 MB / 5.227 GB, free: 124.2 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/12.72, allocations: 0.98 MB / 5.228 GB, free: 124.2 MB / 1.198 GB Notification: Performance of SimCode: time 1.252e-06/12.72, allocations: 0 / 5.228 GB, free: 124.2 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1761/12.89, allocations: 110.8 MB / 5.336 GB, free: 83.56 MB / 1.198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/12.89, allocations: 268.7 kB / 5.337 GB, free: 83.21 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.027/18.92, allocations: 0 / 5.337 GB, free: 83.21 MB / 1.198 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop_res.mat does not exist to compare? outputFormat=mat