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.425/2.425, allocations: 390.3 MB / 405.3 MB, free: 13.44 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.001227/0.001227, allocations: 173.1 kB / 498.1 MB, free: 5.68 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.683/1.683, 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.0009727/0.0009728, allocations: 99.31 kB / 0.9346 GB, free: 6.156 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003622, allocations: 13.56 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3107, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.254/1.565, allocations: 429.7 MB / 1.643 GB, free: 14.42 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000342/1.565, allocations: 95.81 kB / 1.643 GB, free: 14.37 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.004/3.569, allocations: 0.6396 GB / 2.282 GB, free: 46.57 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.204e-06/3.569, allocations: 3.938 kB / 2.282 GB, free: 46.56 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001656/3.569, allocations: 51.86 kB / 2.282 GB, free: 46.51 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.004442/3.573, allocations: 2.099 MB / 2.284 GB, free: 44.34 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/3.573, allocations: 12.03 kB / 2.284 GB, free: 44.33 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001928/3.574, allocations: 143.7 kB / 2.285 GB, free: 44.18 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003415/3.577, allocations: 0.6329 MB / 2.285 GB, free: 43.55 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00366/3.581, allocations: 1.688 MB / 2.287 GB, free: 41.81 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/3.581, allocations: 149.4 kB / 2.287 GB, free: 41.65 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/3.581, allocations: 100 kB / 2.287 GB, free: 41.55 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002664/3.584, allocations: 1.346 MB / 2.288 GB, free: 40.18 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/3.584, allocations: 0 / 2.288 GB, free: 40.18 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.944e-05/3.584, allocations: 39.98 kB / 2.288 GB, free: 40.14 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.771e-05/3.584, allocations: 28 kB / 2.288 GB, free: 40.11 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003423/3.587, allocations: 1.397 MB / 2.29 GB, free: 38.71 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.006848/3.594, allocations: 5.44 MB / 2.295 GB, free: 32.93 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002256/3.597, allocations: 0.9671 MB / 2.296 GB, free: 31.95 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006696/3.597, allocations: 1.243 MB / 2.297 GB, free: 30.43 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001628/3.599, allocations: 0.7174 MB / 2.298 GB, free: 29.7 MB / 1.167 GB Notification: Performance of pre-optimization done (n=67): time 3.336e-06/3.599, allocations: 0 / 2.298 GB, free: 29.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=67): time 0.004876/3.604, allocations: 1.859 MB / 2.3 GB, free: 27.83 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/3.604, allocations: 59.97 kB / 2.3 GB, free: 27.76 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/3.605, allocations: 1.199 MB / 2.301 GB, free: 26.56 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001177/3.606, allocations: 45.7 kB / 2.301 GB, free: 26.51 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004897/3.606, allocations: 0.6821 MB / 2.302 GB, free: 25.82 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.00019/3.606, allocations: 224.7 kB / 2.302 GB, free: 25.59 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.152e-05/3.606, allocations: 16 kB / 2.302 GB, free: 25.58 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.508e-05/3.606, allocations: 338 kB / 2.302 GB, free: 25.24 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/3.608, allocations: 0.5523 MB / 2.303 GB, free: 24.69 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/3.609, allocations: 0.8186 MB / 2.304 GB, free: 23.77 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/3.611, allocations: 0.6197 MB / 2.304 GB, free: 23.15 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/3.611, allocations: 0 / 2.304 GB, free: 23.15 MB / 1.167 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003486/3.614, allocations: 1.473 MB / 2.306 GB, free: 21.66 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002519/3.615, allocations: 1.196 MB / 2.307 GB, free: 20.35 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/3.615, allocations: 7.984 kB / 2.307 GB, free: 20.34 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/3.615, allocations: 8 kB / 2.307 GB, free: 20.34 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/3.616, allocations: 275.7 kB / 2.307 GB, free: 20.07 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/3.616, allocations: 11.89 kB / 2.307 GB, free: 20.05 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/3.618, allocations: 235 kB / 2.307 GB, free: 19.82 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/3.618, allocations: 51.97 kB / 2.307 GB, free: 19.77 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/3.618, allocations: 4 kB / 2.307 GB, free: 19.77 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003142/3.621, allocations: 1.317 MB / 2.309 GB, free: 18.45 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/3.621, allocations: 4 kB / 2.309 GB, free: 18.44 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.336e-06/3.621, allocations: 8 kB / 2.309 GB, free: 18.43 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/3.622, allocations: 279.8 kB / 2.309 GB, free: 18.16 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/3.622, allocations: 8 kB / 2.309 GB, free: 18.15 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/3.624, allocations: 227.1 kB / 2.309 GB, free: 17.93 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.804e-05/3.624, allocations: 51.97 kB / 2.309 GB, free: 17.88 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 (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.0009007/3.625, allocations: 429.4 kB / 2.31 GB, free: 17.45 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/3.625, allocations: 146.1 kB / 2.31 GB, free: 17.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/3.629, allocations: 1.542 MB / 2.311 GB, free: 15.75 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/3.629, allocations: 8 kB / 2.311 GB, free: 15.74 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/3.629, allocations: 0 / 2.311 GB, free: 15.74 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002968/3.632, allocations: 1.355 MB / 2.313 GB, free: 14.35 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006481/3.639, allocations: 3.425 MB / 2.316 GB, free: 10.76 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/3.639, allocations: 8.547 kB / 2.316 GB, free: 10.75 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/3.64, allocations: 235.7 kB / 2.316 GB, free: 10.52 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/3.64, allocations: 8 kB / 2.316 GB, free: 10.52 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/3.64, allocations: 39.97 kB / 2.316 GB, free: 10.48 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.817e-06/3.64, allocations: 11.94 kB / 2.316 GB, free: 10.46 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/3.64, allocations: 4 kB / 2.316 GB, free: 10.46 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00522/3.645, allocations: 2.738 MB / 2.319 GB, free: 7.477 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/3.646, allocations: 475.8 kB / 2.319 GB, free: 6.973 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/3.646, allocations: 27.98 kB / 2.319 GB, free: 6.945 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/3.648, allocations: 175.7 kB / 2.32 GB, free: 6.773 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/3.648, allocations: 80.36 kB / 2.32 GB, free: 6.695 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.442e-05/3.648, allocations: 47.97 kB / 2.32 GB, free: 6.648 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001248/3.649, allocations: 0.9607 MB / 2.321 GB, free: 5.691 MB / 1.167 GB Notification: Performance of sort global known variables: time 6.72e-07/3.649, allocations: 0 / 2.321 GB, free: 5.691 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002346/3.652, allocations: 0.8693 MB / 2.321 GB, free: 4.82 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 (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.5503/4.202, allocations: 5.059 MB / 2.326 GB, free: 249.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005592/4.208, allocations: 2.065 MB / 2.328 GB, free: 248.9 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/4.208, allocations: 1.281 kB / 2.328 GB, free: 248.9 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001949/4.21, allocations: 0.7263 MB / 2.329 GB, free: 248.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/4.213, allocations: 0.7624 MB / 2.33 GB, free: 248.9 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02537/4.239, allocations: 11.78 MB / 2.341 GB, free: 244.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/4.24, allocations: 1.278 MB / 2.343 GB, free: 243.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002185/4.242, allocations: 379.2 kB / 2.343 GB, free: 243.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008568/4.243, allocations: 0.5923 MB / 2.344 GB, free: 243.3 MB / 1.167 GB Notification: Performance of SimCode: time 1.223e-06/4.243, allocations: 1.156 kB / 2.344 GB, free: 243.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0756/4.319, allocations: 48.29 MB / 2.391 GB, free: 242.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/4.319, allocations: 227.8 kB / 2.391 GB, free: 242.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.74/8.059, allocations: 0 / 2.391 GB, free: 242.4 MB / 1.167 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