Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",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.25/2.25, allocations: 390.3 MB / 402.8 MB, free: 6.719 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.001193/0.001193, allocations: 180 kB / 496.1 MB, free: 12.87 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.437/1.437, allocations: 221.3 MB / 0.7915 GB, free: 5.41 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.0009786/0.0009785, allocations: 91.97 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.486e-05/7.529e-05, allocations: 7.984 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2633, allocations: 143 MB / 1.219 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.108/1.372, allocations: 431.6 MB / 1.64 GB, free: 2.863 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/1.372, allocations: 91.94 kB / 1.64 GB, free: 2.773 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 2.673/4.045, allocations: 0.6376 GB / 2.278 GB, free: 244 MB / 1.135 GB Notification: Performance of FrontEnd: time 2.124e-06/4.045, allocations: 3.5 kB / 2.278 GB, free: 244 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001622/4.045, allocations: 45.33 kB / 2.278 GB, free: 244 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.004173/4.049, allocations: 1.765 MB / 2.28 GB, free: 242.8 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/4.05, allocations: 11.5 kB / 2.28 GB, free: 242.8 MB / 1.135 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002326/4.05, allocations: 146 kB / 2.28 GB, free: 242.7 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0037/4.053, allocations: 0.5688 MB / 2.281 GB, free: 242.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003932/4.057, allocations: 1.657 MB / 2.282 GB, free: 241.4 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/4.058, allocations: 154.2 kB / 2.282 GB, free: 241.3 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001968/4.058, allocations: 99.23 kB / 2.282 GB, free: 241.2 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001925/4.06, allocations: 1.149 MB / 2.284 GB, free: 240.6 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/4.06, allocations: 0 / 2.284 GB, free: 240.6 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/4.06, allocations: 35.72 kB / 2.284 GB, free: 240.5 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/4.06, allocations: 38.78 kB / 2.284 GB, free: 240.5 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/4.062, allocations: 1.006 MB / 2.285 GB, free: 240.1 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.007341/4.069, allocations: 5.51 MB / 2.29 GB, free: 235.5 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004343/4.073, allocations: 1.129 MB / 2.291 GB, free: 235.1 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007541/4.074, allocations: 470.9 kB / 2.292 GB, free: 234.8 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007184/4.075, allocations: 1.163 MB / 2.293 GB, free: 233.5 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008322/4.076, allocations: 0.5621 MB / 2.293 GB, free: 233.1 MB / 1.135 GB Notification: Performance of pre-optimization done (n=68): time 2.494e-06/4.076, allocations: 0 / 2.293 GB, free: 233.1 MB / 1.135 GB Notification: Performance of matching and sorting (n=68): time 0.009359/4.085, allocations: 1.7 MB / 2.295 GB, free: 232.4 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/4.085, allocations: 115.9 kB / 2.295 GB, free: 232.3 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002006/4.087, allocations: 1.147 MB / 2.296 GB, free: 231.7 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0002914/4.087, allocations: 45.42 kB / 2.296 GB, free: 231.7 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005376/4.088, allocations: 0.6714 MB / 2.297 GB, free: 231.1 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/4.088, allocations: 234.7 kB / 2.297 GB, free: 230.9 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.562e-05/4.088, allocations: 15.59 kB / 2.297 GB, free: 230.9 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 7.601e-05/4.088, allocations: 339.2 kB / 2.297 GB, free: 230.5 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005722/4.089, allocations: 366.3 kB / 2.298 GB, free: 230.4 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007766/4.09, allocations: 0.6142 MB / 2.298 GB, free: 229.9 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005836/4.09, allocations: 408.8 kB / 2.299 GB, free: 229.7 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/4.09, allocations: 3.062 kB / 2.299 GB, free: 229.7 MB / 1.135 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.009451/4.1, allocations: 1.87 MB / 2.301 GB, free: 228.8 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003054/4.1, allocations: 1.198 MB / 2.302 GB, free: 227.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/4.1, allocations: 0 / 2.302 GB, free: 227.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009282/4.101, allocations: 0.4918 MB / 2.302 GB, free: 227.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009071/4.102, allocations: 185.3 kB / 2.302 GB, free: 227.3 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01241/4.115, allocations: 3.39 MB / 2.306 GB, free: 224.9 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/4.117, allocations: 228.6 kB / 2.306 GB, free: 224.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/4.117, allocations: 50.53 kB / 2.306 GB, free: 224.8 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/4.117, allocations: 5.469 kB / 2.306 GB, free: 224.8 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00886/4.126, allocations: 1.701 MB / 2.308 GB, free: 224.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/4.126, allocations: 2.688 kB / 2.308 GB, free: 224.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008373/4.127, allocations: 0.4963 MB / 2.308 GB, free: 223.9 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008852/4.128, allocations: 186.3 kB / 2.308 GB, free: 223.9 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/4.14, allocations: 3.403 MB / 2.312 GB, free: 221.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002477/4.143, allocations: 219.5 kB / 2.312 GB, free: 221.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002925/4.143, allocations: 55.91 kB / 2.312 GB, free: 221.4 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.0004404/4.144, allocations: 150 kB / 2.312 GB, free: 221.2 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005528/4.144, allocations: 146.1 kB / 2.312 GB, free: 221.1 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009902/4.154, allocations: 1.931 MB / 2.314 GB, free: 220.2 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.39e-05/4.154, allocations: 11.44 kB / 2.314 GB, free: 220.2 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/4.154, allocations: 0 / 2.314 GB, free: 220.2 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009151/4.163, allocations: 1.734 MB / 2.316 GB, free: 219.4 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01451/4.178, allocations: 3.982 MB / 2.32 GB, free: 216.7 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.532e-05/4.178, allocations: 7.703 kB / 2.32 GB, free: 216.7 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007258/4.179, allocations: 154.9 kB / 2.32 GB, free: 216.7 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008403/4.18, allocations: 0.4928 MB / 2.32 GB, free: 216.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00017/4.18, allocations: 30.56 kB / 2.32 GB, free: 216.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/4.193, allocations: 3.478 MB / 2.324 GB, free: 214.1 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/4.193, allocations: 3.969 kB / 2.324 GB, free: 214.1 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/4.204, allocations: 2.931 MB / 2.327 GB, free: 212.2 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/4.206, allocations: 486 kB / 2.327 GB, free: 211.8 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008089/4.207, allocations: 26.7 kB / 2.327 GB, free: 211.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002032/4.209, allocations: 173.1 kB / 2.327 GB, free: 211.7 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002748/4.209, allocations: 81.66 kB / 2.327 GB, free: 211.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/4.209, allocations: 47.59 kB / 2.327 GB, free: 211.6 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.002028/4.211, allocations: 0.9127 MB / 2.328 GB, free: 211.2 MB / 1.135 GB Notification: Performance of sort global known variables: time 2.8e-07/4.211, allocations: 4 kB / 2.328 GB, free: 211.2 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.004326/4.216, allocations: 0.9574 MB / 2.329 GB, free: 210.9 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.01268/4.228, allocations: 5.264 MB / 2.334 GB, free: 205.6 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.005922/4.234, allocations: 1.996 MB / 2.336 GB, free: 203.6 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/4.234, allocations: 3.938 kB / 2.336 GB, free: 203.6 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.00331/4.238, allocations: 0.899 MB / 2.337 GB, free: 202.7 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004509/4.242, allocations: 0.7537 MB / 2.338 GB, free: 201.9 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00759/4.25, allocations: 2.593 MB / 2.34 GB, free: 199.3 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009009/4.251, allocations: 1.28 MB / 2.342 GB, free: 197.9 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.00239/4.253, allocations: 455.8 kB / 2.342 GB, free: 197.5 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006764/4.254, allocations: 0.5579 MB / 2.343 GB, free: 197 MB / 1.135 GB Notification: Performance of SimCode: time 8.82e-07/4.254, allocations: 0 / 2.343 GB, free: 197 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/4.358, allocations: 63.56 MB / 2.405 GB, free: 135.1 MB / 1.135 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/4.359, allocations: 218.2 kB / 2.405 GB, free: 134.9 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.307/8.666, allocations: 7.938 kB / 2.405 GB, free: 134.9 MB / 1.135 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat does not exist to compare? outputFormat=mat