Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_10_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.0009617/0.0009617, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005917/0.005917, allocations: 169.4 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.322/2.322, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002873, allocations: 8 kB / 0.8729 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5189/0.5192, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.04784/0.5671, allocations: 59.13 MB / 1.081 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01519/0.5823, allocations: 13.16 MB / 1.094 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.5835, allocations: 59.62 kB / 1.094 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.5851, allocations: 0.8102 MB / 1.095 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003839/0.589, allocations: 2.154 MB / 1.097 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002652/0.5916, allocations: 1.433 MB / 1.098 GB, free: 2.871 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004412/0.5961, allocations: 5.564 MB / 1.104 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001167/0.5972, allocations: 1.107 MB / 1.105 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001564/0.5988, allocations: 1.318 MB / 1.106 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.5999, allocations: 1.162 MB / 1.107 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.6001, allocations: 63.94 kB / 1.107 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002126/0.6022, allocations: 1.403 MB / 1.108 GB, free: 8.191 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.6025, allocations: 346.4 kB / 1.109 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006666/0.6032, allocations: 0.8564 MB / 1.11 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002349/0.6055, allocations: 2.702 MB / 1.112 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.6055, allocations: 0 / 1.112 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6055, allocations: 0 / 1.112 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.276e-05/0.6055, allocations: 0 / 1.112 GB, free: 4.273 MB / 0.8575 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.002802/0.6084, allocations: 1.914 MB / 1.114 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.6084, allocations: 8.031 kB / 1.114 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001631/0.6086, allocations: 144 kB / 1.114 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003322/0.6119, allocations: 0.5876 MB / 1.115 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/0.6137, allocations: 1.426 MB / 1.116 GB, free: 72 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.6139, allocations: 145.4 kB / 1.116 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.614, allocations: 100 kB / 1.116 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00264/0.6167, allocations: 1.366 MB / 1.118 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.6167, allocations: 0 / 1.118 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.75e-05/0.6168, allocations: 39.94 kB / 1.118 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.292e-05/0.6168, allocations: 31.92 kB / 1.118 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003483/0.6203, allocations: 1.405 MB / 1.119 GB, free: 12.95 MB / 0.8731 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.005975/0.6263, allocations: 5.509 MB / 1.125 GB, free: 7.078 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.6287, allocations: 1.101 MB / 1.126 GB, free: 5.934 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.6303, allocations: 0.6405 MB / 1.126 GB, free: 5.293 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007508/0.631, allocations: 1.236 MB / 1.128 GB, free: 3.777 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001713/0.6328, allocations: 0.7018 MB / 1.128 GB, free: 3.066 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 1.924e-06/0.6328, allocations: 0 / 1.128 GB, free: 3.066 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.004717/0.6375, allocations: 1.809 MB / 1.13 GB, free: 1.25 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.6375, allocations: 59.97 kB / 1.13 GB, free: 1.18 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.639, allocations: 1.333 MB / 1.131 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 7.617e-05/0.6391, allocations: 49.69 kB / 1.131 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004751/0.6395, allocations: 0.6738 MB / 1.132 GB, free: 15.1 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.6397, allocations: 240.6 kB / 1.132 GB, free: 14.86 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.6398, allocations: 69.69 kB / 1.132 GB, free: 14.79 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.922e-05/0.6399, allocations: 337.9 kB / 1.133 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/0.6415, allocations: 0.5602 MB / 1.133 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/0.6431, allocations: 0.7907 MB / 1.134 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002964/0.6461, allocations: 1.222 MB / 1.135 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.6461, allocations: 0 / 1.135 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003446/0.6496, allocations: 1.489 MB / 1.137 GB, free: 10.24 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/0.6497, allocations: 226.1 kB / 1.137 GB, free: 9.973 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.6497, allocations: 4 kB / 1.137 GB, free: 9.969 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.6497, allocations: 8 kB / 1.137 GB, free: 9.961 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.6509, allocations: 279.6 kB / 1.137 GB, free: 9.688 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.6509, allocations: 8 kB / 1.137 GB, free: 9.68 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.6523, allocations: 235 kB / 1.137 GB, free: 9.449 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.181e-05/0.6524, allocations: 47.95 kB / 1.137 GB, free: 9.402 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 6.031e-06/0.6524, allocations: 4 kB / 1.137 GB, free: 9.398 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00326/0.6557, allocations: 1.333 MB / 1.139 GB, free: 8.055 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.6557, allocations: 0 / 1.139 GB, free: 8.055 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.551e-06/0.6557, allocations: 8 kB / 1.139 GB, free: 8.047 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.6569, allocations: 279.9 kB / 1.139 GB, free: 7.773 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.6569, allocations: 4 kB / 1.139 GB, free: 7.77 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.6582, allocations: 239.1 kB / 1.139 GB, free: 7.535 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.008e-05/0.6583, allocations: 35.98 kB / 1.139 GB, free: 7.5 MB / 0.8887 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,chi.on,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004586/0.6588, allocations: 430.1 kB / 1.14 GB, free: 7.07 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.6589, allocations: 150.1 kB / 1.14 GB, free: 6.922 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003628/0.6626, allocations: 1.54 MB / 1.141 GB, free: 5.363 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.6626, allocations: 15.97 kB / 1.141 GB, free: 5.348 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.6626, allocations: 4 kB / 1.141 GB, free: 5.344 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003074/0.6657, allocations: 1.308 MB / 1.143 GB, free: 4.004 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005599/0.6713, allocations: 3.305 MB / 1.146 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.6713, allocations: 7.938 kB / 1.146 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.6724, allocations: 244 kB / 1.146 GB, free: 304 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.6724, allocations: 11.94 kB / 1.146 GB, free: 292 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.469e-05/0.6725, allocations: 23.98 kB / 1.146 GB, free: 268 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.6725, allocations: 12 kB / 1.146 GB, free: 256 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.6725, allocations: 7.938 kB / 1.146 GB, free: 248 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.6775, allocations: 2.345 MB / 1.148 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004535/0.678, allocations: 378.7 kB / 1.149 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.6781, allocations: 19.94 kB / 1.149 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.6795, allocations: 189 kB / 1.149 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.6796, allocations: 76.34 kB / 1.149 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.461e-05/0.6797, allocations: 39.97 kB / 1.149 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001052/0.6808, allocations: 0.9493 MB / 1.15 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6808, allocations: 0 / 1.15 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001555/0.6823, allocations: 0.7954 MB / 1.151 GB, free: 11.37 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006046/0.6884, allocations: 3.305 MB / 1.154 GB, free: 7.996 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004908/0.6933, allocations: 2.113 MB / 1.156 GB, free: 5.855 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6933, allocations: 3.938 kB / 1.156 GB, free: 5.852 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001718/0.695, allocations: 0.7265 MB / 1.157 GB, free: 5.129 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004097/0.6991, allocations: 0.7654 MB / 1.158 GB, free: 4.371 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02335/0.7225, allocations: 14.17 MB / 1.171 GB, free: 5.648 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000699/0.7232, allocations: 1.258 MB / 1.173 GB, free: 4.363 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001392/0.7246, allocations: 371.5 kB / 1.173 GB, free: 3.996 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007726/0.7254, allocations: 0.6008 MB / 1.174 GB, free: 3.395 MB / 0.92 GB Notification: Performance of SimCode: time 4.61e-07/0.7254, allocations: 0 / 1.174 GB, free: 3.395 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.963/3.689, allocations: 43.82 MB / 1.216 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002354/3.689, allocations: 248.9 kB / 1.217 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.06/7.749, allocations: 0 / 1.217 GB, free: 7.867 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)