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/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.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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001005/0.001005, allocations: 184.7 kB / 487.4 MB, free: 5.082 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.455/1.455, allocations: 221.5 MB / 0.7824 GB, free: 1 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008914/0.0008912, allocations: 97.95 kB / 0.9219 GB, free: 2.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.937e-05/1.938e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2618, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.831/6.093, allocations: 2.182 GB / 3.388 GB, free: 142 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/6.093, allocations: 95.95 kB / 3.388 GB, free: 141.9 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 4.833/10.93, allocations: 1.119 GB / 4.507 GB, free: 182.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.715e-06/10.93, allocations: 0 / 4.507 GB, free: 182.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002439/10.93, allocations: 53.25 kB / 4.507 GB, free: 182.5 MB / 1.151 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.006674/10.93, allocations: 2.108 MB / 4.51 GB, free: 181.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/10.93, allocations: 7.188 kB / 4.51 GB, free: 181.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001989/10.94, allocations: 372.2 kB / 4.51 GB, free: 181.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003374/10.94, allocations: 1.654 MB / 4.512 GB, free: 181.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/10.94, allocations: 44.73 kB / 4.512 GB, free: 181.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/10.94, allocations: 84.25 kB / 4.512 GB, free: 181.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001706/10.94, allocations: 0.9371 MB / 4.513 GB, free: 181.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002044/10.94, allocations: 1.212 MB / 4.514 GB, free: 181 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/10.94, allocations: 6 kB / 4.514 GB, free: 181 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-05/10.94, allocations: 0 / 4.514 GB, free: 181 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.274e-05/10.94, allocations: 52.42 kB / 4.514 GB, free: 181 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.009079/10.95, allocations: 6.881 MB / 4.521 GB, free: 177.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/10.95, allocations: 0.8159 MB / 4.521 GB, free: 177.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005746/10.95, allocations: 376.4 kB / 4.522 GB, free: 177.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00102/10.96, allocations: 0.719 MB / 4.522 GB, free: 176.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/10.96, allocations: 41.5 kB / 4.522 GB, free: 176.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=75): time 6.332e-06/10.96, allocations: 0 / 4.522 GB, free: 176.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=75): time 0.003863/10.96, allocations: 1.165 MB / 4.524 GB, free: 176.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/10.96, allocations: 56.12 kB / 4.524 GB, free: 176.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/10.96, allocations: 0.9377 MB / 4.525 GB, free: 175.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001268/10.96, allocations: 25.7 kB / 4.525 GB, free: 175.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008088/10.96, allocations: 0.8096 MB / 4.525 GB, free: 175.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003454/10.96, allocations: 251 kB / 4.526 GB, free: 175.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.844e-05/10.96, allocations: 0 / 4.526 GB, free: 175.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001998/10.96, allocations: 340.2 kB / 4.526 GB, free: 175.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004329/10.96, allocations: 264.9 kB / 4.526 GB, free: 175.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007504/10.96, allocations: 0.5378 MB / 4.527 GB, free: 174.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/10.96, allocations: 431.2 kB / 4.527 GB, free: 174.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-06/10.96, allocations: 3.5 kB / 4.527 GB, free: 174.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003437/10.97, allocations: 1.241 MB / 4.528 GB, free: 174.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.00111/10.97, allocations: 1.957 MB / 4.53 GB, free: 172.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/10.97, allocations: 6.156 kB / 4.53 GB, free: 172.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/10.97, allocations: 368.3 kB / 4.531 GB, free: 172.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000642/10.97, allocations: 145.9 kB / 4.531 GB, free: 172.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002321/10.97, allocations: 2.119 MB / 4.533 GB, free: 171.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002317/10.98, allocations: 150.4 kB / 4.533 GB, free: 171 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001879/10.98, allocations: 40.83 kB / 4.533 GB, free: 171 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/10.98, allocations: 3.938 kB / 4.533 GB, free: 171 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003192/10.98, allocations: 1.027 MB / 4.534 GB, free: 171 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.538e-05/10.98, allocations: 7.562 kB / 4.534 GB, free: 171 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/10.98, allocations: 368.6 kB / 4.534 GB, free: 171 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006751/10.98, allocations: 146.8 kB / 4.534 GB, free: 171 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003974/10.99, allocations: 3.781 MB / 4.538 GB, free: 167.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/10.99, allocations: 142.6 kB / 4.538 GB, free: 167.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001798/10.99, allocations: 36.73 kB / 4.538 GB, free: 167.9 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 21,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004195/10.99, allocations: 127.9 kB / 4.538 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003254/10.99, allocations: 1.098 MB / 4.54 GB, free: 167.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005461/10.99, allocations: 156.5 kB / 4.54 GB, free: 167.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/11, allocations: 1.206 MB / 4.541 GB, free: 167.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/11, allocations: 11.73 kB / 4.541 GB, free: 167.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/11, allocations: 0 / 4.541 GB, free: 167.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002321/11, allocations: 1.32 MB / 4.542 GB, free: 166.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005606/11, allocations: 2.497 MB / 4.545 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/11, allocations: 1.781 kB / 4.545 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004781/11, allocations: 104.4 kB / 4.545 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/11.01, allocations: 357.3 kB / 4.545 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/11.01, allocations: 7.062 kB / 4.545 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/11.01, allocations: 2.102 MB / 4.547 GB, free: 164.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/11.01, allocations: 3.953 kB / 4.547 GB, free: 164.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/11.01, allocations: 1.313 MB / 4.548 GB, free: 164.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/11.01, allocations: 333.7 kB / 4.549 GB, free: 164.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004784/11.01, allocations: 4.5 kB / 4.549 GB, free: 164.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/11.01, allocations: 107.1 kB / 4.549 GB, free: 164.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/11.01, allocations: 56.89 kB / 4.549 GB, free: 164.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.358e-05/11.01, allocations: 33.22 kB / 4.549 GB, free: 164.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001601/11.01, allocations: 0.7072 MB / 4.55 GB, free: 164 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.3e-07/11.01, allocations: 3.406 kB / 4.55 GB, free: 164 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004702/11.02, allocations: 1.041 MB / 4.551 GB, free: 163.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 {3 21,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.006802/11.03, allocations: 4.857 MB / 4.555 GB, free: 161.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002885/11.03, allocations: 1.453 MB / 4.557 GB, free: 161.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/11.03, allocations: 6.562 kB / 4.557 GB, free: 161.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008272/11.03, allocations: 421.2 kB / 4.557 GB, free: 161.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004628/11.03, allocations: 0.7222 MB / 4.558 GB, free: 161.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006995/11.04, allocations: 2.263 MB / 4.56 GB, free: 160.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/11.04, allocations: 1.384 MB / 4.561 GB, free: 159.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002055/11.04, allocations: 398.5 kB / 4.562 GB, free: 159.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006765/11.05, allocations: 0.5981 MB / 4.562 GB, free: 159.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.813e-06/11.05, allocations: 0 / 4.562 GB, free: 159.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1149/11.16, allocations: 57.98 MB / 4.619 GB, free: 156.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002467/11.16, allocations: 198.3 kB / 4.619 GB, free: 156.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.116/15.28, allocations: 0 / 4.619 GB, free: 156.5 MB / 1.151 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