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/ModelicaServices 4.0.0+maint.om/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002425/0.002425, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.668/2.668, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.66/4.66, allocations: 409.2 MB / 0.6838 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007188/0.0007191, allocations: 8 kB / 0.8375 GB, free: 6.543 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.449/1.45, allocations: 146.8 MB / 0.9809 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.09544/1.546, allocations: 50.75 MB / 1.03 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.03267/1.578, allocations: 11.36 MB / 1.042 GB, free: 8.141 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005224/1.584, allocations: 59.56 kB / 1.042 GB, free: 8.082 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.006491/1.59, allocations: 0.9213 MB / 1.042 GB, free: 7.156 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.01658/1.607, allocations: 2.282 MB / 1.045 GB, free: 4.871 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.01139/1.618, allocations: 1.727 MB / 1.046 GB, free: 3.172 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01071/1.629, allocations: 2.566 MB / 1.049 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003936/1.633, allocations: 1.011 MB / 1.05 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005402/1.638, allocations: 1.175 MB / 1.051 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003103/1.642, allocations: 0.7894 MB / 1.052 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0008726/1.642, allocations: 60 kB / 1.052 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006104/1.649, allocations: 0.9167 MB / 1.053 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.001206/1.65, allocations: 306.7 kB / 1.053 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001834/1.652, allocations: 356.8 kB / 1.053 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.006571/1.658, allocations: 1.886 MB / 1.055 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/1.658, allocations: 0 / 1.055 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.068e-06/1.658, allocations: 0 / 1.055 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001162/1.659, allocations: 0 / 1.055 GB, free: 10.08 MB / 0.8106 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.009344/1.668, allocations: 1.886 MB / 1.057 GB, free: 8.125 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.717e-05/1.668, allocations: 8.031 kB / 1.057 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007114/1.669, allocations: 143.8 kB / 1.057 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006836/1.676, allocations: 0.5832 MB / 1.058 GB, free: 7.383 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00597/1.682, allocations: 1.255 MB / 1.059 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000387/1.682, allocations: 153.4 kB / 1.059 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005174/1.683, allocations: 100 kB / 1.059 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006951/1.69, allocations: 1.342 MB / 1.061 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.012e-05/1.69, allocations: 4 kB / 1.061 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003289/1.69, allocations: 43.95 kB / 1.061 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.992e-05/1.69, allocations: 24 kB / 1.061 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007618/1.698, allocations: 1.39 MB / 1.062 GB, free: 2.98 MB / 0.8106 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.01847/1.716, allocations: 5.477 MB / 1.067 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01011/1.727, allocations: 1.443 MB / 1.069 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001684/1.728, allocations: 1.232 MB / 1.07 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00335/1.732, allocations: 0.69 MB / 1.071 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=70): time 6.001e-06/1.732, allocations: 0 / 1.071 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of matching and sorting (n=70): time 0.008363/1.74, allocations: 1.789 MB / 1.072 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/1.74, allocations: 59.97 kB / 1.072 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003197/1.744, allocations: 1.268 MB / 1.074 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0002723/1.744, allocations: 45.7 kB / 1.074 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009917/1.745, allocations: 0.658 MB / 1.074 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000477/1.745, allocations: 248.5 kB / 1.075 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.748e-05/1.745, allocations: 16 kB / 1.075 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002242/1.746, allocations: 338 kB / 1.075 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002843/1.749, allocations: 0.5445 MB / 1.075 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003242/1.752, allocations: 0.7888 MB / 1.076 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002941/1.755, allocations: 0.6019 MB / 1.077 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/1.755, allocations: 0 / 1.077 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.006753/1.762, allocations: 1.466 MB / 1.078 GB, free: 1.504 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009933/1.763, allocations: 1.278 MB / 1.079 GB, free: 104 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/1.763, allocations: 7.938 kB / 1.079 GB, free: 96 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.473e-05/1.763, allocations: 11.98 kB / 1.08 GB, free: 84 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002316/1.765, allocations: 283.7 kB / 1.08 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.935e-05/1.765, allocations: 8 kB / 1.08 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00322/1.768, allocations: 242.9 kB / 1.08 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001842/1.768, allocations: 51.92 kB / 1.08 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/1.769, allocations: 4 kB / 1.08 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006418/1.775, allocations: 1.317 MB / 1.081 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/1.775, allocations: 4 kB / 1.081 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/1.775, allocations: 7.938 kB / 1.081 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/1.777, allocations: 276 kB / 1.082 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.698e-05/1.777, allocations: 11.94 kB / 1.082 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/1.781, allocations: 243 kB / 1.082 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/1.781, allocations: 47.97 kB / 1.082 GB, free: 13.6 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (chi.tru.y,$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 (97): * Single equations (assignments): 96 * 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.001281/1.782, allocations: 405 kB / 1.082 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005609/1.783, allocations: 150.2 kB / 1.082 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007105/1.79, allocations: 1.528 MB / 1.084 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.623e-05/1.79, allocations: 15.98 kB / 1.084 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/1.79, allocations: 0 / 1.084 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00552/1.795, allocations: 1.292 MB / 1.085 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/1.809, allocations: 3.288 MB / 1.088 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/1.809, allocations: 4 kB / 1.088 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002256/1.811, allocations: 232.2 kB / 1.089 GB, free: 6.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.957e-05/1.811, allocations: 8 kB / 1.089 GB, free: 6.473 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/1.811, allocations: 27.98 kB / 1.089 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.891e-05/1.811, allocations: 15.92 kB / 1.089 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-05/1.811, allocations: 4 kB / 1.089 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01202/1.823, allocations: 2.597 MB / 1.091 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.825, allocations: 378.8 kB / 1.092 GB, free: 3.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004738/1.826, allocations: 19.83 kB / 1.092 GB, free: 3.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00306/1.829, allocations: 187.7 kB / 1.092 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/1.829, allocations: 76.36 kB / 1.092 GB, free: 2.906 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001995/1.83, allocations: 35.97 kB / 1.092 GB, free: 2.871 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.002977/1.833, allocations: 0.909 MB / 1.093 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of sort global known variables: time 6.91e-07/1.833, allocations: 0 / 1.093 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.004863/1.837, allocations: 0.7992 MB / 1.094 GB, free: 1.164 MB / 0.8419 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 (74): * Single equations (assignments): 66 * 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.01422/1.852, allocations: 4.731 MB / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.008312/1.86, allocations: 2.089 MB / 1.1 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/1.86, allocations: 0 / 1.1 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.003003/1.863, allocations: 0.7147 MB / 1.101 GB, free: 9.473 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006725/1.87, allocations: 0.7292 MB / 1.102 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/1.887, allocations: 6.134 MB / 1.108 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001854/1.889, allocations: 1.276 MB / 1.109 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.003857/1.893, allocations: 362.9 kB / 1.109 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001694/1.895, allocations: 0.5852 MB / 1.11 GB, free: 200 kB / 0.8575 GB Notification: Performance of SimCode: time 1.543e-06/1.895, allocations: 0 / 1.11 GB, free: 200 kB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1968/2.091, allocations: 41.94 MB / 1.151 GB, free: 6.781 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004516/2.092, allocations: 221 kB / 1.151 GB, free: 6.539 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.9/7.992, allocations: 0 / 1.151 GB, free: 6.539 MB / 0.9044 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) Environment - environmentSimulation: 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