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.0009814/0.0009814, allocations: 99.62 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.0009432/0.0009433, allocations: 177.3 kB / 15.95 MB, free: 216 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.4/1.4, allocations: 223.2 MB / 239.9 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.593/2.593, allocations: 390.3 MB / 0.6653 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.000354, allocations: 12 kB / 0.8146 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.767/0.7674, allocations: 142.3 MB / 0.9536 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06905/0.8365, allocations: 50.6 MB / 1.003 GB, free: 13.42 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01802/0.8546, allocations: 11.38 MB / 1.014 GB, free: 2.027 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002785/0.8574, allocations: 59.56 kB / 1.014 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.003292/0.8607, allocations: 0.9252 MB / 1.015 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.007427/0.8681, allocations: 2.273 MB / 1.017 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005375/0.8735, allocations: 1.71 MB / 1.019 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.006087/0.8796, allocations: 2.546 MB / 1.021 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002121/0.8818, allocations: 0.9993 MB / 1.022 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003162/0.885, allocations: 1.168 MB / 1.024 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001712/0.8867, allocations: 0.7854 MB / 1.024 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0002748/0.887, allocations: 56 kB / 1.024 GB, free: 7.504 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003221/0.8902, allocations: 0.9361 MB / 1.025 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0004637/0.8907, allocations: 298.8 kB / 1.026 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0006995/0.8914, allocations: 368.8 kB / 1.026 GB, free: 5.906 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002989/0.8944, allocations: 1.89 MB / 1.028 GB, free: 4.012 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.8945, allocations: 0 / 1.028 GB, free: 4.012 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.354e-06/0.8945, allocations: 4 kB / 1.028 GB, free: 4.008 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.448e-05/0.8945, allocations: 0 / 1.028 GB, free: 4.008 MB / 0.7794 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.003908/0.8984, allocations: 1.882 MB / 1.03 GB, free: 2.059 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.8985, allocations: 12.03 kB / 1.03 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002423/0.8987, allocations: 151.6 kB / 1.03 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003498/0.9022, allocations: 0.6417 MB / 1.03 GB, free: 1.246 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002449/0.9047, allocations: 1.25 MB / 1.032 GB, free: 15.94 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.9049, allocations: 141.4 kB / 1.032 GB, free: 15.79 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.9051, allocations: 100 kB / 1.032 GB, free: 15.7 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002804/0.9079, allocations: 1.342 MB / 1.033 GB, free: 14.32 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.9079, allocations: 0 / 1.033 GB, free: 14.32 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-05/0.908, allocations: 40 kB / 1.033 GB, free: 14.28 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.478e-05/0.9081, allocations: 24 kB / 1.033 GB, free: 14.26 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00352/0.9116, allocations: 1.382 MB / 1.035 GB, free: 12.88 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.007424/0.919, allocations: 5.398 MB / 1.04 GB, free: 7.121 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002683/0.9217, allocations: 1.125 MB / 1.041 GB, free: 5.949 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009213/0.9227, allocations: 1.228 MB / 1.042 GB, free: 4.445 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001788/0.9245, allocations: 0.6978 MB / 1.043 GB, free: 3.738 MB / 0.795 GB Notification: Performance of pre-optimization done (n=69): time 2.545e-06/0.9245, allocations: 0 / 1.043 GB, free: 3.738 MB / 0.795 GB Notification: Performance of matching and sorting (n=69): time 0.005161/0.9297, allocations: 1.785 MB / 1.045 GB, free: 1.945 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.9297, allocations: 67.92 kB / 1.045 GB, free: 1.867 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001888/0.9316, allocations: 1.308 MB / 1.046 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001371/0.9318, allocations: 45.7 kB / 1.046 GB, free: 0.5 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006118/0.9324, allocations: 0.6777 MB / 1.047 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/0.9327, allocations: 232.6 kB / 1.047 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/0.9328, allocations: 16 kB / 1.047 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.9329, allocations: 337.9 kB / 1.047 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/0.9345, allocations: 0.5523 MB / 1.048 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.9363, allocations: 0.7704 MB / 1.048 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.9379, allocations: 0.598 MB / 1.049 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.9379, allocations: 7.938 kB / 1.049 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003954/0.9419, allocations: 1.462 MB / 1.05 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005864/0.9425, allocations: 1.197 MB / 1.052 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.9425, allocations: 4 kB / 1.052 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.9426, allocations: 8 kB / 1.052 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.9438, allocations: 279.6 kB / 1.052 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.9439, allocations: 11.94 kB / 1.052 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.9457, allocations: 247 kB / 1.052 GB, free: 9.887 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.9458, allocations: 39.97 kB / 1.052 GB, free: 9.848 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.9458, allocations: 8 kB / 1.052 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003485/0.9493, allocations: 1.313 MB / 1.054 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.9493, allocations: 0 / 1.054 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.9494, allocations: 8 kB / 1.054 GB, free: 8.512 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.9506, allocations: 279.9 kB / 1.054 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.9507, allocations: 8 kB / 1.054 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/0.9525, allocations: 239.1 kB / 1.054 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.99e-05/0.9526, allocations: 35.98 kB / 1.054 GB, free: 7.961 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.0008646/0.9535, allocations: 422.7 kB / 1.054 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004057/0.9539, allocations: 154.1 kB / 1.055 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004097/0.958, allocations: 1.536 MB / 1.056 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/0.958, allocations: 8 kB / 1.056 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.9581, allocations: 0 / 1.056 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003269/0.9613, allocations: 1.3 MB / 1.057 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007618/0.969, allocations: 3.281 MB / 1.061 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/0.969, allocations: 4 kB / 1.061 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.9702, allocations: 228.2 kB / 1.061 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-05/0.9702, allocations: 8 kB / 1.061 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-05/0.9703, allocations: 27.98 kB / 1.061 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-05/0.9703, allocations: 15.92 kB / 1.061 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/0.9703, allocations: 7.953 kB / 1.061 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006082/0.9764, allocations: 2.621 MB / 1.063 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009902/0.9774, allocations: 378.7 kB / 1.064 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003608/0.9778, allocations: 27.98 kB / 1.064 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001594/0.9794, allocations: 179.7 kB / 1.064 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.9796, allocations: 72.41 kB / 1.064 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.9797, allocations: 47.91 kB / 1.064 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001769/0.9815, allocations: 0.9333 MB / 1.065 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9815, allocations: 0 / 1.065 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00335/0.9848, allocations: 0.7877 MB / 1.066 GB, free: 11.46 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.008199/0.993, allocations: 4.725 MB / 1.07 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.005461/0.9985, allocations: 2.089 MB / 1.072 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.9986, allocations: 4 kB / 1.072 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001896/1, allocations: 0.7186 MB / 1.073 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004062/1.005, allocations: 0.7402 MB / 1.074 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00831/1.013, allocations: 5.853 MB / 1.08 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/1.014, allocations: 1.284 MB / 1.081 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001913/1.016, allocations: 365.6 kB / 1.081 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009598/1.017, allocations: 0.5813 MB / 1.082 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of SimCode: time 8.52e-07/1.017, allocations: 0 / 1.082 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07221/1.089, allocations: 42.26 MB / 1.123 GB, free: 1.055 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/1.089, allocations: 221.1 kB / 1.123 GB, free: 0.8203 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.989/4.078, allocations: 4 kB / 1.123 GB, free: 0.8164 MB / 0.8731 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