Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.245/2.245, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001078/0.001079, allocations: 187 kB / 0.4902 GB, free: 2.25 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.584/1.584, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.00103/0.00103, allocations: 107.8 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003836, allocations: 11.22 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3293, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.185/1.514, allocations: 431.8 MB / 1.651 GB, free: 13.88 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/1.515, allocations: 92.36 kB / 1.651 GB, free: 13.83 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 2.056/3.571, allocations: 0.6398 GB / 2.291 GB, free: 29.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.164e-06/3.571, allocations: 0 / 2.291 GB, free: 29.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001539/3.571, allocations: 47.98 kB / 2.291 GB, free: 29.26 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 0.004538/3.575, allocations: 2.082 MB / 2.293 GB, free: 27.11 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/3.576, allocations: 8.031 kB / 2.293 GB, free: 27.11 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002509/3.576, allocations: 151.8 kB / 2.293 GB, free: 26.95 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003592/3.579, allocations: 0.5754 MB / 2.294 GB, free: 26.37 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003732/3.583, allocations: 1.68 MB / 2.295 GB, free: 24.64 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/3.583, allocations: 145.4 kB / 2.295 GB, free: 24.48 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/3.583, allocations: 111.9 kB / 2.296 GB, free: 24.38 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/3.586, allocations: 1.354 MB / 2.297 GB, free: 22.98 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/3.586, allocations: 0 / 2.297 GB, free: 22.98 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/3.586, allocations: 36 kB / 2.297 GB, free: 22.95 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.096e-05/3.586, allocations: 28 kB / 2.297 GB, free: 22.92 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003378/3.59, allocations: 1.405 MB / 2.298 GB, free: 21.52 MB / 1.167 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.008032/3.598, allocations: 5.532 MB / 2.304 GB, free: 15.63 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005562/3.603, allocations: 1.382 MB / 2.305 GB, free: 14.24 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009062/3.604, allocations: 1.156 MB / 2.306 GB, free: 12.83 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001796/3.606, allocations: 0.7135 MB / 2.307 GB, free: 12.11 MB / 1.167 GB Notification: Performance of pre-optimization done (n=69): time 6.212e-06/3.606, allocations: 0 / 2.307 GB, free: 12.11 MB / 1.167 GB Notification: Performance of matching and sorting (n=69): time 0.02528/3.632, allocations: 4.293 MB / 2.311 GB, free: 7.777 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/3.632, allocations: 59.97 kB / 2.311 GB, free: 7.707 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/3.634, allocations: 1.159 MB / 2.312 GB, free: 6.543 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002809/3.634, allocations: 45.69 kB / 2.312 GB, free: 6.492 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005137/3.634, allocations: 0.6779 MB / 2.313 GB, free: 5.805 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/3.635, allocations: 236.6 kB / 2.313 GB, free: 5.57 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/3.635, allocations: 16 kB / 2.313 GB, free: 5.555 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.634e-05/3.635, allocations: 337.9 kB / 2.314 GB, free: 5.219 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/3.636, allocations: 0.5524 MB / 2.314 GB, free: 4.668 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/3.638, allocations: 0.8114 MB / 2.315 GB, free: 3.758 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/3.639, allocations: 0.5964 MB / 2.315 GB, free: 3.156 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/3.639, allocations: 3.938 kB / 2.315 GB, free: 3.152 MB / 1.167 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0118/3.651, allocations: 2.36 MB / 2.318 GB, free: 0.7734 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.7706/4.422, allocations: 1.191 MB / 2.319 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/4.422, allocations: 2 kB / 2.319 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002916/4.425, allocations: 0.7177 MB / 2.32 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009706/4.426, allocations: 186 kB / 2.32 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02087/4.447, allocations: 4.81 MB / 2.324 GB, free: 239 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002346/4.449, allocations: 227.6 kB / 2.325 GB, free: 239 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/4.449, allocations: 51.44 kB / 2.325 GB, free: 239 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/4.449, allocations: 3.062 kB / 2.325 GB, free: 239 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0126/4.462, allocations: 2.198 MB / 2.327 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/4.462, allocations: 4.031 kB / 2.327 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002248/4.464, allocations: 0.7142 MB / 2.328 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009403/4.465, allocations: 186.8 kB / 2.328 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02212/4.487, allocations: 4.81 MB / 2.332 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/4.49, allocations: 221 kB / 2.333 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001859/4.49, allocations: 48.67 kB / 2.333 GB, free: 237.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.001101/4.491, allocations: 419.6 kB / 2.333 GB, free: 237.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000465/4.492, allocations: 147 kB / 2.333 GB, free: 237.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0127/4.504, allocations: 2.43 MB / 2.336 GB, free: 237.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.984e-05/4.504, allocations: 12.39 kB / 2.336 GB, free: 237.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/4.504, allocations: 0 / 2.336 GB, free: 237.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01228/4.517, allocations: 2.235 MB / 2.338 GB, free: 237.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/4.534, allocations: 4.352 MB / 2.342 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.517e-05/4.534, allocations: 4.875 kB / 2.342 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008353/4.535, allocations: 169.5 kB / 2.342 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002262/4.537, allocations: 0.7116 MB / 2.343 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001822/4.537, allocations: 29.02 kB / 2.343 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02035/4.558, allocations: 4.785 MB / 2.348 GB, free: 235.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/4.558, allocations: 4.688 kB / 2.348 GB, free: 235.2 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01396/4.572, allocations: 3.615 MB / 2.351 GB, free: 234.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/4.573, allocations: 491 kB / 2.352 GB, free: 234.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002781/4.574, allocations: 22.91 kB / 2.352 GB, free: 234.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/4.575, allocations: 173.9 kB / 2.352 GB, free: 234.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/4.575, allocations: 79.45 kB / 2.352 GB, free: 234.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/4.576, allocations: 44.41 kB / 2.352 GB, free: 234.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001696/4.577, allocations: 0.9351 MB / 2.353 GB, free: 234 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.81e-07/4.577, allocations: 3.125 kB / 2.353 GB, free: 234 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00394/4.581, allocations: 0.9668 MB / 2.354 GB, free: 234 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0155/4.597, allocations: 5.961 MB / 2.36 GB, free: 231.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01018/4.607, allocations: 2.805 MB / 2.362 GB, free: 231.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/4.607, allocations: 3.438 kB / 2.362 GB, free: 231.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.00436/4.611, allocations: 1.105 MB / 2.363 GB, free: 231 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004153/4.616, allocations: 0.7583 MB / 2.364 GB, free: 231 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03247/4.648, allocations: 12.71 MB / 2.377 GB, free: 226.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008067/4.649, allocations: 1.269 MB / 2.378 GB, free: 225.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001886/4.651, allocations: 346.4 kB / 2.378 GB, free: 225.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007411/4.652, allocations: 0.5738 MB / 2.379 GB, free: 225.4 MB / 1.167 GB Notification: Performance of SimCode: time 8.61e-07/4.652, allocations: 3.25 kB / 2.379 GB, free: 225.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09742/4.749, allocations: 60.46 MB / 2.438 GB, free: 222.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/4.749, allocations: 261.8 kB / 2.438 GB, free: 222.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.366/9.115, allocations: 0.75 kB / 2.438 GB, free: 222.3 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat does not exist to compare? outputFormat=mat