Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.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.Chillers.Examples.ElectricEIR_AirCooled,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled",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.286/2.286, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001231/0.001231, allocations: 171.3 kB / 498.1 MB, free: 5.684 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.688/1.688, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009798/0.0009798, allocations: 100.1 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004051/0.0004052, allocations: 11.41 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3288, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.16/5.489, allocations: 2.217 GB / 3.44 GB, free: 213.5 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/5.489, allocations: 98.39 kB / 3.44 GB, free: 213.4 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 3.341/8.831, allocations: 1.062 GB / 4.502 GB, free: 36.81 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.885e-06/8.831, allocations: 0 / 4.502 GB, free: 36.81 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002514/8.831, allocations: 75.92 kB / 4.502 GB, free: 36.74 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: 481 * Number of variables: 481 Notification: Performance of Generate backend data structure: time 0.008232/8.839, allocations: 3.24 MB / 4.505 GB, free: 33.42 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/8.839, allocations: 8.031 kB / 4.505 GB, free: 33.41 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008113/8.84, allocations: 274.2 kB / 4.506 GB, free: 33.14 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007059/8.847, allocations: 1.019 MB / 4.507 GB, free: 32.11 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005539/8.853, allocations: 2.115 MB / 4.509 GB, free: 29.93 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/8.853, allocations: 219.1 kB / 4.509 GB, free: 29.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000338/8.853, allocations: 196 kB / 4.509 GB, free: 29.51 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005099/8.858, allocations: 2.407 MB / 4.512 GB, free: 27.04 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.434e-05/8.859, allocations: 3.984 kB / 4.512 GB, free: 27.04 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/8.859, allocations: 87.95 kB / 4.512 GB, free: 26.95 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.069e-05/8.859, allocations: 75.56 kB / 4.512 GB, free: 26.88 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005643/8.864, allocations: 2.743 MB / 4.514 GB, free: 24.13 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.01291/8.877, allocations: 8.724 MB / 4.523 GB, free: 14.98 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006889/8.884, allocations: 2.369 MB / 4.525 GB, free: 12.61 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006805/8.885, allocations: 0.8792 MB / 4.526 GB, free: 11.55 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002501/8.888, allocations: 1.27 MB / 4.527 GB, free: 10.26 MB / 1.167 GB Notification: Performance of pre-optimization done (n=159): time 4.067e-06/8.888, allocations: 0 / 4.527 GB, free: 10.26 MB / 1.167 GB Notification: Performance of matching and sorting (n=159): time 0.008388/8.896, allocations: 3.227 MB / 4.53 GB, free: 7.008 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/8.896, allocations: 252.6 kB / 4.531 GB, free: 6.703 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00234/8.898, allocations: 1.687 MB / 4.532 GB, free: 4.988 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001923/8.899, allocations: 61.7 kB / 4.532 GB, free: 4.922 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007692/8.899, allocations: 1.029 MB / 4.533 GB, free: 3.879 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003794/8.9, allocations: 0.5275 MB / 4.534 GB, free: 3.344 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-05/8.9, allocations: 28 kB / 4.534 GB, free: 3.316 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.138e-05/8.9, allocations: 357.9 kB / 4.534 GB, free: 2.961 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/8.902, allocations: 0.8627 MB / 4.535 GB, free: 2.098 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002063/8.904, allocations: 1.196 MB / 4.536 GB, free: 0.7852 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/8.906, allocations: 0.9704 MB / 4.537 GB, free: 15.82 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/8.906, allocations: 0 / 4.537 GB, free: 15.82 MB / 1.182 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.006177/8.912, allocations: 2.363 MB / 4.54 GB, free: 13.43 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004888/8.913, allocations: 1.051 MB / 4.541 GB, free: 12.28 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/8.913, allocations: 4 kB / 4.541 GB, free: 12.27 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006505/8.913, allocations: 92.73 kB / 4.541 GB, free: 12.18 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002286/8.916, allocations: 443.4 kB / 4.541 GB, free: 11.75 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/8.918, allocations: 2.149 MB / 4.543 GB, free: 9.43 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003124/8.921, allocations: 338.4 kB / 4.544 GB, free: 9.098 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/8.922, allocations: 71.95 kB / 4.544 GB, free: 9.027 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/8.922, allocations: 4 kB / 4.544 GB, free: 9.023 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005538/8.927, allocations: 2.154 MB / 4.546 GB, free: 6.859 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/8.927, allocations: 4 kB / 4.546 GB, free: 6.855 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005856/8.928, allocations: 88.8 kB / 4.546 GB, free: 6.766 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002103/8.93, allocations: 431.4 kB / 4.546 GB, free: 6.344 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002039/8.932, allocations: 1.552 MB / 4.548 GB, free: 4.656 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003149/8.935, allocations: 330.5 kB / 4.548 GB, free: 4.332 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/8.935, allocations: 75.95 kB / 4.548 GB, free: 4.258 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,chi.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001688/8.937, allocations: 0.6059 MB / 4.549 GB, free: 3.641 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007314/8.938, allocations: 241 kB / 4.549 GB, free: 3.402 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007279/8.945, allocations: 2.658 MB / 4.552 GB, free: 0.7266 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/8.945, allocations: 16 kB / 4.552 GB, free: 0.7109 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/8.945, allocations: 0 / 4.552 GB, free: 0.7109 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.7426/9.688, allocations: 2.415 MB / 4.554 GB, free: 216.5 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01338/9.701, allocations: 5.39 MB / 4.559 GB, free: 215.9 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/9.701, allocations: 6.656 kB / 4.559 GB, free: 215.9 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002309/9.704, allocations: 444.7 kB / 4.56 GB, free: 215.9 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005433/9.704, allocations: 95.09 kB / 4.56 GB, free: 215.9 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/9.704, allocations: 52.91 kB / 4.56 GB, free: 215.9 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/9.706, allocations: 2.176 MB / 4.562 GB, free: 214 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/9.706, allocations: 8 kB / 4.562 GB, free: 214 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0101/9.716, allocations: 4.138 MB / 4.566 GB, free: 213.4 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002371/9.719, allocations: 0.6993 MB / 4.567 GB, free: 213.1 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005548/9.719, allocations: 43.62 kB / 4.567 GB, free: 213.1 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002892/9.722, allocations: 258.6 kB / 4.567 GB, free: 213.1 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004372/9.723, allocations: 137.2 kB / 4.567 GB, free: 213.1 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002482/9.723, allocations: 82.39 kB / 4.567 GB, free: 213.1 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.003092/9.726, allocations: 1.323 MB / 4.568 GB, free: 212.9 MB / 1.182 GB Notification: Performance of sort global known variables: time 4.71e-07/9.726, allocations: 0 / 4.568 GB, free: 212.9 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.005391/9.731, allocations: 1.53 MB / 4.57 GB, free: 212.8 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 4 (chi.vol1.dynBal.medium.Xi[1],chi.vol1.dynBal.U,chi.vol1.dynBal.m,chi.vol2.dynBal.U) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,weaDat.conTimMin.tNext,weaDat.conTim.tNext,chi.on) * Number of discrete states: 3 (pulse.count,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01481/9.746, allocations: 7.994 MB / 4.578 GB, free: 210.2 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.008554/9.755, allocations: 3.546 MB / 4.581 GB, free: 209.9 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/9.755, allocations: 3.562 kB / 4.581 GB, free: 209.9 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.002989/9.758, allocations: 1.291 MB / 4.582 GB, free: 209.7 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00574/9.764, allocations: 1.101 MB / 4.583 GB, free: 209.7 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03444/9.798, allocations: 17.56 MB / 4.601 GB, free: 202.3 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/9.799, allocations: 1.721 MB / 4.602 GB, free: 201.6 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.004027/9.803, allocations: 0.7945 MB / 4.603 GB, free: 201.6 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001584/9.805, allocations: 1.038 MB / 4.604 GB, free: 201.6 MB / 1.182 GB Notification: Performance of SimCode: time 1.513e-06/9.805, allocations: 3.75 kB / 4.604 GB, free: 201.6 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1615/9.967, allocations: 93.93 MB / 4.696 GB, free: 198.6 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/9.967, allocations: 255.2 kB / 4.696 GB, free: 198.3 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.526/16.49, allocations: 4 kB / 4.696 GB, free: 198.3 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled_fmu --startTime=1.70208e+07 --stopTime=1.7064e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled_res.mat does not exist to compare? outputFormat=mat