Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_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.001032/0.001033, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001165/0.001165, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.535/2.535, allocations: 390.4 MB / 0.6655 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003803/0.0003804, allocations: 8 kB / 0.8149 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.826/0.8264, allocations: 142.3 MB / 0.9538 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.0681/0.8946, allocations: 55.78 MB / 1.008 GB, free: 8.301 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02062/0.9153, allocations: 12.36 MB / 1.02 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003115/0.9184, allocations: 63.56 kB / 1.02 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002904/0.9213, allocations: 0.7064 MB / 1.021 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007348/0.9287, allocations: 1.837 MB / 1.023 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00443/0.9332, allocations: 1.157 MB / 1.024 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.007291/0.9405, allocations: 4.758 MB / 1.029 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002023/0.9425, allocations: 0.9718 MB / 1.03 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003072/0.9456, allocations: 1.291 MB / 1.031 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002082/0.9477, allocations: 1.089 MB / 1.032 GB, free: 8 kB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000264/0.948, allocations: 60.05 kB / 1.032 GB, free: 15.95 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003125/0.9511, allocations: 1.021 MB / 1.033 GB, free: 14.93 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003827/0.9515, allocations: 326.6 kB / 1.033 GB, free: 14.61 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0006452/0.9522, allocations: 360.8 kB / 1.034 GB, free: 14.25 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002604/0.9548, allocations: 1.968 MB / 1.036 GB, free: 12.27 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.9548, allocations: 4 kB / 1.036 GB, free: 12.27 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.725e-06/0.9548, allocations: 0 / 1.036 GB, free: 12.27 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.637e-05/0.9549, allocations: 0 / 1.036 GB, free: 12.27 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003376/0.9582, allocations: 1.919 MB / 1.037 GB, free: 10.29 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.9583, allocations: 12.03 kB / 1.037 GB, free: 10.27 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001964/0.9585, allocations: 151.7 kB / 1.038 GB, free: 10.12 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003084/0.9616, allocations: 0.6417 MB / 1.038 GB, free: 9.473 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.964, allocations: 1.35 MB / 1.04 GB, free: 8.074 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.9641, allocations: 141.4 kB / 1.04 GB, free: 7.926 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.9643, allocations: 104 kB / 1.04 GB, free: 7.824 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002712/0.967, allocations: 1.342 MB / 1.041 GB, free: 6.445 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.9671, allocations: 3.938 kB / 1.041 GB, free: 6.441 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.9672, allocations: 44 kB / 1.041 GB, free: 6.398 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.582e-05/0.9672, allocations: 24 kB / 1.041 GB, free: 6.375 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003311/0.9705, allocations: 1.382 MB / 1.043 GB, free: 4.996 MB / 0.795 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.007369/0.9779, allocations: 5.391 MB / 1.048 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002309/0.9802, allocations: 1.087 MB / 1.049 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001421/0.9817, allocations: 0.631 MB / 1.049 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008878/0.9826, allocations: 1.236 MB / 1.051 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001641/0.9842, allocations: 0.6901 MB / 1.051 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.986e-06/0.9843, allocations: 0 / 1.051 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.004676/0.9889, allocations: 1.805 MB / 1.053 GB, free: 9.453 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.989, allocations: 55.97 kB / 1.053 GB, free: 9.387 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.9907, allocations: 1.316 MB / 1.054 GB, free: 8.062 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.783e-05/0.9908, allocations: 41.7 kB / 1.055 GB, free: 8.016 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005528/0.9913, allocations: 0.6777 MB / 1.055 GB, free: 7.328 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.9916, allocations: 232.7 kB / 1.055 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.297e-05/0.9916, allocations: 16 kB / 1.055 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.9918, allocations: 337.9 kB / 1.056 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.9932, allocations: 0.5524 MB / 1.056 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001543/0.9947, allocations: 0.7743 MB / 1.057 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.9962, allocations: 0.598 MB / 1.058 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.9962, allocations: 4 kB / 1.058 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003556/0.9998, allocations: 1.469 MB / 1.059 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/1, allocations: 211.5 kB / 1.059 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/1, allocations: 4 kB / 1.059 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/1, allocations: 8 kB / 1.059 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/1.001, allocations: 267.7 kB / 1.06 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/1.001, allocations: 11.94 kB / 1.06 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/1.003, allocations: 242.9 kB / 1.06 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/1.003, allocations: 47.97 kB / 1.06 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/1.003, allocations: 5.875 kB / 1.06 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003442/1.006, allocations: 1.305 MB / 1.061 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/1.006, allocations: 4 kB / 1.061 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/1.007, allocations: 8 kB / 1.061 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/1.008, allocations: 272 kB / 1.061 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.383e-05/1.008, allocations: 7.938 kB / 1.061 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001717/1.009, allocations: 235.1 kB / 1.062 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.513e-05/1.01, allocations: 39.97 kB / 1.062 GB, free: 0.5469 MB / 0.8106 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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.0007277/1.01, allocations: 416.9 kB / 1.062 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/1.011, allocations: 150.3 kB / 1.062 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003605/1.014, allocations: 1.536 MB / 1.064 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/1.014, allocations: 11.98 kB / 1.064 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/1.014, allocations: 0 / 1.064 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002958/1.017, allocations: 1.296 MB / 1.065 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00634/1.024, allocations: 3.277 MB / 1.068 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/1.024, allocations: 4 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/1.025, allocations: 244.2 kB / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-05/1.025, allocations: 8 kB / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.869e-05/1.025, allocations: 31.94 kB / 1.068 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.438e-05/1.025, allocations: 11.98 kB / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/1.025, allocations: 11.88 kB / 1.068 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004983/1.03, allocations: 2.321 MB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007685/1.031, allocations: 378.7 kB / 1.071 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/1.031, allocations: 19.98 kB / 1.071 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/1.032, allocations: 187.7 kB / 1.071 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/1.032, allocations: 68.41 kB / 1.071 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.371e-05/1.032, allocations: 39.97 kB / 1.071 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001303/1.034, allocations: 0.9333 MB / 1.072 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/1.034, allocations: 0 / 1.072 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001912/1.036, allocations: 0.7799 MB / 1.073 GB, free: 4.539 MB / 0.8262 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 (73): * Single equations (assignments): 65 * 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.006051/1.042, allocations: 3.259 MB / 1.076 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00493/1.047, allocations: 2.093 MB / 1.078 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/1.047, allocations: 0 / 1.078 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001773/1.048, allocations: 0.7186 MB / 1.079 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00376/1.052, allocations: 0.75 MB / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0202/1.072, allocations: 9.933 MB / 1.089 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009367/1.073, allocations: 1.238 MB / 1.091 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.00198/1.075, allocations: 371.5 kB / 1.091 GB, free: 1.645 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/1.076, allocations: 0.589 MB / 1.092 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of SimCode: time 1.192e-06/1.076, allocations: 3.938 kB / 1.092 GB, free: 1.051 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08036/1.157, allocations: 42.94 MB / 1.133 GB, free: 6.668 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002071/1.157, allocations: 234.3 kB / 1.134 GB, free: 6.426 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.079/4.236, allocations: 0 / 1.134 GB, free: 6.426 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat does not exist to compare? outputFormat=mat