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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002286/0.002286, allocations: 100.3 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.002189/0.002189, 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.659/2.659, allocations: 223.2 MB / 239.9 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.831/4.831, allocations: 409.2 MB / 0.6838 GB, free: 1 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006496/0.0006496, allocations: 8 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.492/1.492, allocations: 146.8 MB / 0.9809 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.08423/1.577, allocations: 50.75 MB / 1.03 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02837/1.605, allocations: 11.4 MB / 1.042 GB, free: 8.016 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004365/1.61, allocations: 55.62 kB / 1.042 GB, free: 7.961 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.006025/1.616, allocations: 0.9291 MB / 1.043 GB, free: 7.027 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.01531/1.631, allocations: 2.282 MB / 1.045 GB, free: 4.742 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.01036/1.641, allocations: 1.746 MB / 1.046 GB, free: 3.027 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.009996/1.651, allocations: 2.565 MB / 1.049 GB, free: 468 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003489/1.655, allocations: 1.007 MB / 1.05 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00522/1.66, allocations: 1.168 MB / 1.051 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004153/1.665, allocations: 0.8049 MB / 1.052 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0006997/1.665, allocations: 56 kB / 1.052 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006203/1.672, allocations: 0.944 MB / 1.053 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.001031/1.673, allocations: 310.7 kB / 1.053 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.00143/1.674, allocations: 368.7 kB / 1.053 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.005962/1.68, allocations: 1.913 MB / 1.055 GB, free: 9.863 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/1.68, allocations: 0 / 1.055 GB, free: 9.863 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.774e-06/1.68, allocations: 3.938 kB / 1.055 GB, free: 9.859 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.747e-05/1.68, allocations: 0 / 1.055 GB, free: 9.859 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.007661/1.688, allocations: 1.909 MB / 1.057 GB, free: 7.883 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.717e-05/1.688, allocations: 12.03 kB / 1.057 GB, free: 7.871 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006682/1.689, allocations: 147.8 kB / 1.057 GB, free: 7.719 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005356/1.694, allocations: 0.5793 MB / 1.058 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005236/1.699, allocations: 1.264 MB / 1.059 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002889/1.7, allocations: 153.3 kB / 1.059 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003137/1.7, allocations: 100 kB / 1.059 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004903/1.705, allocations: 1.346 MB / 1.061 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-05/1.705, allocations: 0 / 1.061 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/1.705, allocations: 47.95 kB / 1.061 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-05/1.705, allocations: 27.94 kB / 1.061 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005812/1.711, allocations: 1.397 MB / 1.062 GB, free: 2.711 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.01816/1.729, allocations: 5.498 MB / 1.068 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004621/1.734, allocations: 1.132 MB / 1.069 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001524/1.736, allocations: 1.232 MB / 1.07 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003113/1.739, allocations: 0.6978 MB / 1.071 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=70): time 9.147e-06/1.739, allocations: 4 kB / 1.071 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of matching and sorting (n=70): time 0.01291/1.752, allocations: 1.805 MB / 1.072 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/1.752, allocations: 67.89 kB / 1.072 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003624/1.756, allocations: 1.313 MB / 1.074 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004137/1.756, allocations: 41.7 kB / 1.074 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001107/1.757, allocations: 0.6778 MB / 1.074 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005001/1.758, allocations: 236.6 kB / 1.075 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.01e-05/1.758, allocations: 16 kB / 1.075 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002073/1.758, allocations: 334 kB / 1.075 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00236/1.761, allocations: 0.5602 MB / 1.075 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007174/1.768, allocations: 0.7872 MB / 1.076 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002603/1.77, allocations: 0.6019 MB / 1.077 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/1.771, allocations: 0 / 1.077 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00621/1.777, allocations: 1.485 MB / 1.078 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.001051/1.778, allocations: 1.285 MB / 1.08 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.194e-05/1.778, allocations: 4 kB / 1.08 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.56e-05/1.778, allocations: 4 kB / 1.08 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001987/1.78, allocations: 283.6 kB / 1.08 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-05/1.78, allocations: 12 kB / 1.08 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005646/1.786, allocations: 246.9 kB / 1.08 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002492/1.786, allocations: 51.92 kB / 1.08 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/1.786, allocations: 0 / 1.08 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00558/1.792, allocations: 1.329 MB / 1.081 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/1.792, allocations: 0 / 1.081 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.109e-05/1.792, allocations: 8 kB / 1.081 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002145/1.794, allocations: 283.7 kB / 1.082 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.722e-05/1.794, allocations: 8 kB / 1.082 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002908/1.797, allocations: 235.1 kB / 1.082 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/1.797, allocations: 35.97 kB / 1.082 GB, free: 13.5 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.001722/1.799, allocations: 424.8 kB / 1.082 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008266/1.8, allocations: 154.2 kB / 1.082 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006899/1.807, allocations: 1.544 MB / 1.084 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-05/1.807, allocations: 8 kB / 1.084 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/1.807, allocations: 0 / 1.084 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02185/1.829, allocations: 1.3 MB / 1.085 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/1.84, allocations: 3.301 MB / 1.088 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.463e-05/1.84, allocations: 12.02 kB / 1.088 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/1.842, allocations: 231.7 kB / 1.089 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.476e-05/1.842, allocations: 12 kB / 1.089 GB, free: 6.316 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001255/1.842, allocations: 23.98 kB / 1.089 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.259e-05/1.842, allocations: 11.98 kB / 1.089 GB, free: 6.281 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.317e-05/1.842, allocations: 7.938 kB / 1.089 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009742/1.852, allocations: 2.634 MB / 1.091 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/1.854, allocations: 382.7 kB / 1.092 GB, free: 2.992 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004937/1.855, allocations: 16 kB / 1.092 GB, free: 2.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002628/1.857, allocations: 191.7 kB / 1.092 GB, free: 2.789 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/1.858, allocations: 72.38 kB / 1.092 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/1.858, allocations: 43.95 kB / 1.092 GB, free: 2.676 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.002373/1.86, allocations: 0.9337 MB / 1.093 GB, free: 1.746 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.01e-07/1.86, allocations: 0 / 1.093 GB, free: 1.746 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.005014/1.865, allocations: 0.8032 MB / 1.094 GB, free: 0.9414 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.01349/1.879, allocations: 4.745 MB / 1.098 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.009125/1.888, allocations: 2.105 MB / 1.1 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-05/1.888, allocations: 4.062 kB / 1.1 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.003433/1.892, allocations: 0.7224 MB / 1.101 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006782/1.899, allocations: 0.7408 MB / 1.102 GB, free: 8.473 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01827/1.917, allocations: 6.222 MB / 1.108 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/1.919, allocations: 1.284 MB / 1.109 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.003964/1.923, allocations: 365.4 kB / 1.11 GB, free: 424 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/1.924, allocations: 0.5931 MB / 1.11 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of SimCode: time 1.242e-06/1.924, allocations: 0 / 1.11 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2244/2.149, allocations: 42.49 MB / 1.152 GB, free: 5.883 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004092/2.149, allocations: 238.7 kB / 1.152 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.155/8.305, allocations: 0 / 1.152 GB, free: 5.637 MB / 0.9044 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) Environment - environmentSimulation: 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