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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009463/0.0009463, allocations: 98.27 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.00705/0.00705, allocations: 170.7 kB / 16.27 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.398/1.398, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.553/2.553, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003052, allocations: 9.75 kB / 0.9029 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.239, allocations: 159.6 MB / 1.059 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.0533/0.2924, allocations: 59.13 MB / 1.117 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01655/0.309, allocations: 13.11 MB / 1.129 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001929/0.3109, allocations: 59.56 kB / 1.129 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002321/0.3132, allocations: 0.8121 MB / 1.13 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005389/0.3187, allocations: 2.153 MB / 1.132 GB, free: 9.359 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003397/0.3221, allocations: 1.418 MB / 1.134 GB, free: 7.953 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005963/0.328, allocations: 5.562 MB / 1.139 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001996/0.33, allocations: 1.099 MB / 1.14 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002721/0.3328, allocations: 1.33 MB / 1.141 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001975/0.3348, allocations: 1.166 MB / 1.143 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002647/0.335, allocations: 60 kB / 1.143 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002869/0.3379, allocations: 1.372 MB / 1.144 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004256/0.3384, allocations: 338.5 kB / 1.144 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001264/0.3396, allocations: 0.837 MB / 1.145 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003449/0.3431, allocations: 2.659 MB / 1.148 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3431, allocations: 0 / 1.148 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3431, allocations: 0 / 1.148 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.119e-05/0.3432, allocations: 4 kB / 1.148 GB, free: 9.453 MB / 0.9044 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.003288/0.3465, allocations: 1.886 MB / 1.15 GB, free: 7.504 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.3465, allocations: 11.97 kB / 1.15 GB, free: 7.492 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001733/0.3467, allocations: 144 kB / 1.15 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003394/0.3501, allocations: 0.5838 MB / 1.15 GB, free: 6.758 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.352, allocations: 1.406 MB / 1.152 GB, free: 5.297 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.3522, allocations: 153.3 kB / 1.152 GB, free: 5.137 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001768/0.3523, allocations: 100 kB / 1.152 GB, free: 5.039 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002764/0.3551, allocations: 1.362 MB / 1.153 GB, free: 3.641 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.3551, allocations: 3.938 kB / 1.153 GB, free: 3.637 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.3553, allocations: 36 kB / 1.153 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.929e-05/0.3553, allocations: 27.94 kB / 1.153 GB, free: 3.574 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003621/0.3589, allocations: 1.397 MB / 1.155 GB, free: 2.176 MB / 0.9044 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.006493/0.3654, allocations: 5.465 MB / 1.16 GB, free: 12.36 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005399/0.3708, allocations: 1.429 MB / 1.161 GB, free: 10.9 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/0.3725, allocations: 0.6444 MB / 1.162 GB, free: 10.25 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008378/0.3733, allocations: 1.232 MB / 1.163 GB, free: 8.746 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001775/0.3751, allocations: 0.6901 MB / 1.164 GB, free: 8.047 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 2.544e-06/0.3751, allocations: 0 / 1.164 GB, free: 8.047 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.005059/0.3802, allocations: 1.789 MB / 1.166 GB, free: 6.25 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.3803, allocations: 63.97 kB / 1.166 GB, free: 6.176 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.3819, allocations: 1.279 MB / 1.167 GB, free: 4.887 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.947e-05/0.382, allocations: 37.7 kB / 1.167 GB, free: 4.844 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005452/0.3826, allocations: 0.6619 MB / 1.168 GB, free: 4.172 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/0.3828, allocations: 236.6 kB / 1.168 GB, free: 3.938 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3829, allocations: 73.69 kB / 1.168 GB, free: 3.859 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3831, allocations: 337.9 kB / 1.168 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.3846, allocations: 0.5446 MB / 1.169 GB, free: 2.98 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.3864, allocations: 0.7957 MB / 1.17 GB, free: 2.098 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003102/0.3895, allocations: 1.214 MB / 1.171 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3895, allocations: 0 / 1.171 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003637/0.3932, allocations: 1.477 MB / 1.172 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.3933, allocations: 211.9 kB / 1.172 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.3933, allocations: 4 kB / 1.172 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.3933, allocations: 11.94 kB / 1.172 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.3946, allocations: 275.6 kB / 1.173 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3946, allocations: 4 kB / 1.173 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.3961, allocations: 247 kB / 1.173 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.765e-05/0.3962, allocations: 43.92 kB / 1.173 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.634e-06/0.3962, allocations: 5.406 kB / 1.173 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003372/0.3996, allocations: 1.317 MB / 1.174 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.3996, allocations: 4.062 kB / 1.174 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.3996, allocations: 8 kB / 1.174 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.4008, allocations: 279.6 kB / 1.175 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.4008, allocations: 4 kB / 1.175 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.4023, allocations: 239 kB / 1.175 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.227e-05/0.4023, allocations: 39.98 kB / 1.175 GB, free: 12.62 MB / 0.9356 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.0005221/0.4029, allocations: 420.8 kB / 1.175 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.403, allocations: 142.2 kB / 1.175 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/0.4068, allocations: 1.52 MB / 1.177 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.4068, allocations: 11.98 kB / 1.177 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4068, allocations: 7.875 kB / 1.177 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003213/0.4101, allocations: 1.292 MB / 1.178 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005901/0.416, allocations: 3.272 MB / 1.181 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.416, allocations: 8.562 kB / 1.181 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.4171, allocations: 235.7 kB / 1.182 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.4172, allocations: 8 kB / 1.182 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.477e-05/0.4172, allocations: 35.97 kB / 1.182 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.4172, allocations: 11.94 kB / 1.182 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.4172, allocations: 7.938 kB / 1.182 GB, free: 5.438 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005258/0.4225, allocations: 2.313 MB / 1.184 GB, free: 3.047 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004811/0.423, allocations: 370.9 kB / 1.184 GB, free: 2.664 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.4232, allocations: 24 kB / 1.184 GB, free: 2.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.4246, allocations: 191.5 kB / 1.184 GB, free: 2.453 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.4247, allocations: 68.36 kB / 1.184 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-05/0.4248, allocations: 39.97 kB / 1.185 GB, free: 2.344 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001097/0.4259, allocations: 0.909 MB / 1.185 GB, free: 1.438 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4259, allocations: 4 kB / 1.185 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0017/0.4276, allocations: 0.7954 MB / 1.186 GB, free: 0.6367 MB / 0.9356 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.006402/0.434, allocations: 3.27 MB / 1.189 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005323/0.4394, allocations: 2.093 MB / 1.191 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4394, allocations: 0 / 1.191 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001883/0.4413, allocations: 0.7186 MB / 1.192 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004547/0.4459, allocations: 0.7738 MB / 1.193 GB, free: 9.695 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02438/0.4702, allocations: 13.7 MB / 1.206 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007943/0.4711, allocations: 1.234 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001572/0.4726, allocations: 367.6 kB / 1.208 GB, free: 9.816 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008292/0.4735, allocations: 0.5969 MB / 1.208 GB, free: 9.219 MB / 0.9669 GB Notification: Performance of SimCode: time 4.81e-07/0.4735, allocations: 0 / 1.208 GB, free: 9.219 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.642/1.116, allocations: 43.12 MB / 1.251 GB, free: 179.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/1.116, allocations: 243.4 kB / 1.251 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.038/4.154, allocations: 0 / 1.251 GB, free: 179.1 MB / 0.9981 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/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)