Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",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.319/2.319, allocations: 390.5 MB / 398 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.001085/0.001085, allocations: 184.5 kB / 491.2 MB, free: 1.609 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.651/1.651, allocations: 221.5 MB / 0.7868 GB, free: 13.25 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.0009295/0.0009296, allocations: 97.77 kB / 0.9269 GB, free: 13.74 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.081e-05/2.084e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3164, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.234/1.551, allocations: 431 MB / 1.633 GB, free: 15.72 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003779/1.551, allocations: 91.2 kB / 1.633 GB, free: 15.68 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.78/4.331, allocations: 0.6345 GB / 2.268 GB, free: 248.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.653e-06/4.331, allocations: 9.766 kB / 2.268 GB, free: 248.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002835/4.331, allocations: 44.28 kB / 2.268 GB, free: 248.9 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.0051/4.336, allocations: 1.781 MB / 2.27 GB, free: 248.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/4.336, allocations: 11.41 kB / 2.27 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003973/4.34, allocations: 0.5776 MB / 2.27 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004418/4.345, allocations: 1.676 MB / 2.272 GB, free: 247.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/4.345, allocations: 107.2 kB / 2.272 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003751/4.345, allocations: 68.09 kB / 2.272 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002138/4.348, allocations: 0.9776 MB / 2.273 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/4.35, allocations: 1.028 MB / 2.274 GB, free: 247.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.683e-05/4.35, allocations: 7.062 kB / 2.274 GB, free: 247.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/4.35, allocations: 3.125 kB / 2.274 GB, free: 247.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.269e-05/4.35, allocations: 33.48 kB / 2.274 GB, free: 247.6 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.008242/4.358, allocations: 5.382 MB / 2.279 GB, free: 245.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/4.36, allocations: 0.6931 MB / 2.28 GB, free: 245.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006471/4.36, allocations: 466.2 kB / 2.28 GB, free: 245.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007452/4.361, allocations: 1.159 MB / 2.282 GB, free: 243.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008171/4.362, allocations: 0.5602 MB / 2.282 GB, free: 243.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=68): time 4.699e-06/4.362, allocations: 0 / 2.282 GB, free: 243.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=68): time 0.00992/4.372, allocations: 1.742 MB / 2.284 GB, free: 243.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/4.372, allocations: 111.1 kB / 2.284 GB, free: 243.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002195/4.374, allocations: 1.047 MB / 2.285 GB, free: 243.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002894/4.374, allocations: 29.58 kB / 2.285 GB, free: 243.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007133/4.375, allocations: 0.7006 MB / 2.286 GB, free: 243.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003945/4.376, allocations: 225 kB / 2.286 GB, free: 243 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.681e-05/4.376, allocations: 0 / 2.286 GB, free: 243 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.887e-05/4.376, allocations: 331.5 kB / 2.286 GB, free: 242.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006139/4.376, allocations: 367.3 kB / 2.287 GB, free: 242.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007975/4.377, allocations: 0.6088 MB / 2.287 GB, free: 242.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001232/4.378, allocations: 438 kB / 2.288 GB, free: 242.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/4.378, allocations: 3.938 kB / 2.288 GB, free: 242.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.008976/4.387, allocations: 1.75 MB / 2.289 GB, free: 242.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003075/4.388, allocations: 1.194 MB / 2.29 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/4.388, allocations: 1.406 kB / 2.29 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009008/4.389, allocations: 0.5276 MB / 2.291 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009713/4.39, allocations: 185 kB / 2.291 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/4.392, allocations: 1.061 MB / 2.292 GB, free: 240.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002244/4.394, allocations: 194 kB / 2.292 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002818/4.395, allocations: 50.7 kB / 2.292 GB, free: 240.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/4.395, allocations: 6.188 kB / 2.292 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008736/4.404, allocations: 1.579 MB / 2.294 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/4.404, allocations: 3.141 kB / 2.294 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008135/4.404, allocations: 0.5247 MB / 2.294 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008438/4.405, allocations: 191.8 kB / 2.295 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002423/4.408, allocations: 1.051 MB / 2.296 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/4.41, allocations: 187.3 kB / 2.296 GB, free: 239.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002337/4.41, allocations: 52.75 kB / 2.296 GB, free: 239.9 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 (80): * Single equations (assignments): 78 * 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 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0004035/4.411, allocations: 133.6 kB / 2.296 GB, free: 239.8 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009598/4.42, allocations: 1.738 MB / 2.298 GB, free: 239.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006964/4.421, allocations: 144.7 kB / 2.298 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/4.431, allocations: 1.923 MB / 2.3 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.071e-05/4.431, allocations: 22.59 kB / 2.3 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/4.431, allocations: 0 / 2.3 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00931/4.441, allocations: 1.756 MB / 2.301 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006849/4.448, allocations: 3.19 MB / 2.305 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/4.448, allocations: 3.844 kB / 2.305 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006597/4.448, allocations: 154.8 kB / 2.305 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008066/4.449, allocations: 0.5277 MB / 2.305 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/4.449, allocations: 24.89 kB / 2.305 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003301/4.453, allocations: 1.193 MB / 2.306 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/4.453, allocations: 11.25 kB / 2.306 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003943/4.457, allocations: 2.221 MB / 2.309 GB, free: 237.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/4.458, allocations: 488.8 kB / 2.309 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005615/4.458, allocations: 15.17 kB / 2.309 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001845/4.46, allocations: 152.6 kB / 2.309 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/4.461, allocations: 73.92 kB / 2.309 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/4.461, allocations: 52.58 kB / 2.309 GB, free: 236.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001488/4.462, allocations: 0.7979 MB / 2.31 GB, free: 236.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.31e-07/4.462, allocations: 0 / 2.31 GB, free: 236.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003704/4.466, allocations: 0.8468 MB / 2.311 GB, free: 236.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 (66): * Single equations (assignments): 57 * 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.005463/4.471, allocations: 4.627 MB / 2.315 GB, free: 234.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005009/4.476, allocations: 1.698 MB / 2.317 GB, free: 234 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/4.476, allocations: 0 / 2.317 GB, free: 234 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003025/4.479, allocations: 0.758 MB / 2.318 GB, free: 234 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/4.483, allocations: 0.6315 MB / 2.319 GB, free: 234 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007111/4.49, allocations: 2.554 MB / 2.321 GB, free: 233.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000955/4.491, allocations: 1.283 MB / 2.322 GB, free: 232.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002068/4.493, allocations: 434 kB / 2.323 GB, free: 232.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006707/4.494, allocations: 0.5608 MB / 2.323 GB, free: 232.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.042e-06/4.494, allocations: 3.469 kB / 2.323 GB, free: 232.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08681/4.581, allocations: 46.85 MB / 2.369 GB, free: 230.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/4.581, allocations: 187.7 kB / 2.369 GB, free: 230.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.709/8.29, allocations: 0 / 2.369 GB, free: 230.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat does not exist to compare? outputFormat=mat