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.276/2.276, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.001021/0.001021, allocations: 180.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 221.3 MB / 0.7915 GB, free: 5.418 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.0009421/0.0009421, allocations: 99.88 kB / 0.9318 GB, free: 5.723 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.331e-05/3.361e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2749, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.135/1.41, allocations: 431.7 MB / 1.64 GB, free: 2.758 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/1.411, allocations: 88.77 kB / 1.64 GB, free: 2.672 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 2.579/3.989, allocations: 0.6382 GB / 2.279 GB, free: 243.3 MB / 1.135 GB Notification: Performance of FrontEnd: time 1.252e-06/3.989, allocations: 0 / 2.279 GB, free: 243.3 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001498/3.989, allocations: 43.62 kB / 2.279 GB, free: 243.3 MB / 1.135 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.003312/3.993, allocations: 1.79 MB / 2.28 GB, free: 242.1 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/3.993, allocations: 14.38 kB / 2.28 GB, free: 242.1 MB / 1.135 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001722/3.993, allocations: 148.7 kB / 2.281 GB, free: 242 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003425/3.996, allocations: 0.5704 MB / 2.281 GB, free: 241.8 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003262/4, allocations: 1.674 MB / 2.283 GB, free: 240.6 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/4, allocations: 150.8 kB / 2.283 GB, free: 240.5 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001783/4, allocations: 105.2 kB / 2.283 GB, free: 240.5 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/4.002, allocations: 1.154 MB / 2.284 GB, free: 239.8 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/4.002, allocations: 4.938 kB / 2.284 GB, free: 239.8 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/4.002, allocations: 35.62 kB / 2.284 GB, free: 239.8 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/4.002, allocations: 34.3 kB / 2.284 GB, free: 239.8 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/4.004, allocations: 1.024 MB / 2.285 GB, free: 239.3 MB / 1.135 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.006912/4.011, allocations: 5.567 MB / 2.291 GB, free: 234.7 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/4.012, allocations: 0.7297 MB / 2.291 GB, free: 234.4 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006392/4.012, allocations: 476.2 kB / 2.292 GB, free: 234.2 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006388/4.013, allocations: 1.163 MB / 2.293 GB, free: 232.8 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007847/4.014, allocations: 0.5777 MB / 2.294 GB, free: 232.4 MB / 1.135 GB Notification: Performance of pre-optimization done (n=68): time 2.574e-06/4.014, allocations: 7.125 kB / 2.294 GB, free: 232.4 MB / 1.135 GB Notification: Performance of matching and sorting (n=68): time 0.009231/4.023, allocations: 1.733 MB / 2.295 GB, free: 231.7 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/4.023, allocations: 112 kB / 2.295 GB, free: 231.6 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/4.025, allocations: 1.186 MB / 2.297 GB, free: 231 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0002174/4.025, allocations: 44.92 kB / 2.297 GB, free: 230.9 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004629/4.026, allocations: 0.6911 MB / 2.297 GB, free: 230.3 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/4.026, allocations: 235.5 kB / 2.297 GB, free: 230.1 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.419e-05/4.026, allocations: 11.81 kB / 2.297 GB, free: 230.1 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 6.065e-05/4.026, allocations: 337.8 kB / 2.298 GB, free: 229.8 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005524/4.026, allocations: 376.8 kB / 2.298 GB, free: 229.6 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000666/4.027, allocations: 0.6228 MB / 2.299 GB, free: 229.1 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005655/4.028, allocations: 423.6 kB / 2.299 GB, free: 228.9 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/4.028, allocations: 0 / 2.299 GB, free: 228.9 MB / 1.135 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.008372/4.036, allocations: 1.786 MB / 2.301 GB, free: 228.1 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.000289/4.036, allocations: 1.202 MB / 2.302 GB, free: 226.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/4.036, allocations: 3.719 kB / 2.302 GB, free: 226.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008941/4.037, allocations: 0.5274 MB / 2.303 GB, free: 226.6 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000906/4.038, allocations: 193.1 kB / 2.303 GB, free: 226.6 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/4.04, allocations: 0.9909 MB / 2.304 GB, free: 225.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002368/4.043, allocations: 227.3 kB / 2.304 GB, free: 225.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/4.043, allocations: 58.81 kB / 2.304 GB, free: 225.7 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/4.043, allocations: 3.938 kB / 2.304 GB, free: 225.7 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008053/4.051, allocations: 1.61 MB / 2.306 GB, free: 225 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/4.051, allocations: 7.172 kB / 2.306 GB, free: 225 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008023/4.052, allocations: 0.5343 MB / 2.306 GB, free: 224.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007985/4.053, allocations: 186.2 kB / 2.306 GB, free: 224.7 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/4.055, allocations: 0.994 MB / 2.307 GB, free: 224 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/4.057, allocations: 218.8 kB / 2.307 GB, free: 223.9 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/4.057, allocations: 49.56 kB / 2.308 GB, free: 223.9 MB / 1.135 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.0003372/4.058, allocations: 154.6 kB / 2.308 GB, free: 223.7 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002906/4.058, allocations: 149.3 kB / 2.308 GB, free: 223.7 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00947/4.067, allocations: 1.959 MB / 2.31 GB, free: 222.7 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.094e-05/4.067, allocations: 10.81 kB / 2.31 GB, free: 222.7 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/4.067, allocations: 0 / 2.31 GB, free: 222.7 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00883/4.076, allocations: 1.759 MB / 2.311 GB, free: 221.9 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005534/4.082, allocations: 3.361 MB / 2.315 GB, free: 219.4 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/4.082, allocations: 10.86 kB / 2.315 GB, free: 219.4 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006139/4.083, allocations: 157 kB / 2.315 GB, free: 219.4 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007844/4.083, allocations: 0.5247 MB / 2.315 GB, free: 219.2 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7e-05/4.083, allocations: 27.61 kB / 2.315 GB, free: 219.2 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003107/4.087, allocations: 1.134 MB / 2.317 GB, free: 218.4 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/4.087, allocations: 3.938 kB / 2.317 GB, free: 218.4 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003408/4.09, allocations: 2.298 MB / 2.319 GB, free: 216.7 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/4.091, allocations: 492.5 kB / 2.319 GB, free: 216.3 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002107/4.091, allocations: 25.95 kB / 2.319 GB, free: 216.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/4.093, allocations: 169.9 kB / 2.319 GB, free: 216.2 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/4.093, allocations: 75.73 kB / 2.32 GB, free: 216.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/4.093, allocations: 49.34 kB / 2.32 GB, free: 216.1 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.001556/4.095, allocations: 0.9524 MB / 2.321 GB, free: 215.7 MB / 1.135 GB Notification: Performance of sort global known variables: time 2.51e-07/4.095, allocations: 0 / 2.321 GB, free: 215.7 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.002557/4.097, allocations: 0.8791 MB / 2.321 GB, free: 215.5 MB / 1.135 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.004242/4.101, allocations: 4.631 MB / 2.326 GB, free: 212.1 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.004959/4.106, allocations: 1.762 MB / 2.328 GB, free: 211.3 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/4.106, allocations: 3.125 kB / 2.328 GB, free: 211.3 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.003075/4.11, allocations: 0.7743 MB / 2.328 GB, free: 211 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004009/4.114, allocations: 0.7589 MB / 2.329 GB, free: 210.7 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006353/4.12, allocations: 2.647 MB / 2.332 GB, free: 208.3 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006261/4.121, allocations: 1.287 MB / 2.333 GB, free: 207 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.001976/4.123, allocations: 471.3 kB / 2.333 GB, free: 206.6 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000602/4.123, allocations: 0.5657 MB / 2.334 GB, free: 206 MB / 1.135 GB Notification: Performance of SimCode: time 1.753e-06/4.123, allocations: 0 / 2.334 GB, free: 206 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08123/4.204, allocations: 56.18 MB / 2.389 GB, free: 151.5 MB / 1.135 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/4.205, allocations: 229.4 kB / 2.389 GB, free: 151.2 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.917/8.122, allocations: 0 / 2.389 GB, free: 151.2 MB / 1.135 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