Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",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.283/2.283, allocations: 387.1 MB / 399.7 MB, free: 9.504 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.00137/0.00137, allocations: 176.9 kB / 492.3 MB, free: 0.6055 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.544/1.544, allocations: 221.3 MB / 0.7871 GB, free: 12.87 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.0009166/0.0009168, allocations: 91.94 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.576e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.27, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.21/1.48, allocations: 429.6 MB / 1.632 GB, free: 0.9102 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003615/1.48, allocations: 92.75 kB / 1.632 GB, free: 0.8633 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 2.845/4.325, allocations: 0.6378 GB / 2.27 GB, free: 249.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 6.733e-06/4.325, allocations: 3.938 kB / 2.27 GB, free: 249.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0004616/4.325, allocations: 43.75 kB / 2.27 GB, free: 249.6 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.0078/4.333, allocations: 1.778 MB / 2.272 GB, free: 248.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 7.267e-05/4.333, allocations: 9.891 kB / 2.272 GB, free: 248.9 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007259/4.334, allocations: 154.2 kB / 2.272 GB, free: 248.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005027/4.339, allocations: 0.6298 MB / 2.272 GB, free: 248.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007111/4.346, allocations: 1.675 MB / 2.274 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003266/4.346, allocations: 145.9 kB / 2.274 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005359/4.347, allocations: 99.34 kB / 2.274 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00349/4.351, allocations: 1.117 MB / 2.275 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.63e-05/4.351, allocations: 3.094 kB / 2.275 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/4.351, allocations: 45.27 kB / 2.275 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.887e-05/4.351, allocations: 26.12 kB / 2.276 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002198/4.353, allocations: 0.9748 MB / 2.276 GB, free: 248.2 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.008568/4.362, allocations: 5.428 MB / 2.282 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/4.363, allocations: 0.7052 MB / 2.282 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006564/4.364, allocations: 463.9 kB / 2.283 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000753/4.364, allocations: 1.243 MB / 2.284 GB, free: 244.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008171/4.365, allocations: 0.5456 MB / 2.285 GB, free: 244.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=67): time 2.866e-06/4.365, allocations: 0 / 2.285 GB, free: 244.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=67): time 0.001828/4.367, allocations: 0.903 MB / 2.286 GB, free: 244.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/4.367, allocations: 114.5 kB / 2.286 GB, free: 244 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001948/4.369, allocations: 1.179 MB / 2.287 GB, free: 243.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001447/4.369, allocations: 45.7 kB / 2.287 GB, free: 243.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005876/4.37, allocations: 0.6841 MB / 2.287 GB, free: 243.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002323/4.37, allocations: 233.3 kB / 2.288 GB, free: 243.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/4.37, allocations: 11.22 kB / 2.288 GB, free: 243.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.991e-05/4.37, allocations: 332.8 kB / 2.288 GB, free: 243.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005366/4.371, allocations: 365.9 kB / 2.288 GB, free: 243.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007037/4.371, allocations: 0.5965 MB / 2.289 GB, free: 243 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006134/4.372, allocations: 406.7 kB / 2.289 GB, free: 243 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/4.372, allocations: 0 / 2.289 GB, free: 243 MB / 1.151 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001803/4.374, allocations: 1.056 MB / 2.29 GB, free: 242.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002931/4.374, allocations: 1.212 MB / 2.292 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/4.374, allocations: 0 / 2.292 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/4.374, allocations: 6.812 kB / 2.292 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/4.376, allocations: 278.2 kB / 2.292 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.382e-05/4.376, allocations: 10.77 kB / 2.292 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/4.378, allocations: 232.3 kB / 2.292 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/4.378, allocations: 55.47 kB / 2.292 GB, free: 241.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/4.378, allocations: 5.375 kB / 2.292 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001402/4.379, allocations: 0.8948 MB / 2.293 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/4.379, allocations: 2.281 kB / 2.293 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.918e-06/4.379, allocations: 11.27 kB / 2.293 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/4.38, allocations: 273.5 kB / 2.293 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/4.38, allocations: 7.781 kB / 2.293 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/4.382, allocations: 232.9 kB / 2.294 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/4.382, allocations: 54.05 kB / 2.294 GB, free: 241.4 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002732/4.383, allocations: 148.2 kB / 2.294 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003561/4.383, allocations: 151.7 kB / 2.294 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002051/4.385, allocations: 1.121 MB / 2.295 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/4.385, allocations: 10.81 kB / 2.295 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/4.385, allocations: 3.531 kB / 2.295 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001207/4.386, allocations: 0.9326 MB / 2.296 GB, free: 241 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005017/4.391, allocations: 3.136 MB / 2.299 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/4.391, allocations: 2.844 kB / 2.299 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/4.393, allocations: 252.8 kB / 2.299 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.576e-05/4.393, allocations: 7.938 kB / 2.299 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-05/4.393, allocations: 25.97 kB / 2.299 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.678e-06/4.393, allocations: 11.52 kB / 2.299 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/4.393, allocations: 5.438 kB / 2.299 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002568/4.395, allocations: 2.103 MB / 2.301 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/4.396, allocations: 490 kB / 2.302 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004054/4.397, allocations: 24.52 kB / 2.302 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/4.398, allocations: 184.2 kB / 2.302 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/4.399, allocations: 75.61 kB / 2.302 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/4.399, allocations: 49.48 kB / 2.302 GB, free: 239 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001635/4.4, allocations: 0.9486 MB / 2.303 GB, free: 238.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.61e-07/4.4, allocations: 0 / 2.303 GB, free: 238.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003038/4.403, allocations: 0.8613 MB / 2.304 GB, free: 238.7 MB / 1.151 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004564/4.408, allocations: 4.442 MB / 2.308 GB, free: 236.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002387/4.41, allocations: 1.487 MB / 2.31 GB, free: 236.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/4.41, allocations: 3.938 kB / 2.31 GB, free: 236.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008199/4.411, allocations: 0.5149 MB / 2.31 GB, free: 236.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004018/4.415, allocations: 0.7516 MB / 2.311 GB, free: 236.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005653/4.421, allocations: 2.432 MB / 2.313 GB, free: 235.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008502/4.422, allocations: 1.277 MB / 2.314 GB, free: 234.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002878/4.425, allocations: 0.492 MB / 2.315 GB, free: 234.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008958/4.426, allocations: 0.5756 MB / 2.316 GB, free: 234.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.212e-06/4.426, allocations: 0 / 2.316 GB, free: 234.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08602/4.512, allocations: 51.02 MB / 2.365 GB, free: 232.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/4.512, allocations: 195.4 kB / 2.366 GB, free: 232.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.016/8.528, allocations: 0 / 2.366 GB, free: 232.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat does not exist to compare? outputFormat=mat