Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.ElectricEIR,fileNamePrefix="Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_10_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.001258/0.001258, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00122/0.00122, allocations: 191 kB / 16.25 MB, free: 6.637 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.31/1.31, allocations: 222.9 MB / 239.9 MB, free: 4.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.447/2.447, allocations: 437 MB / 0.7101 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 63.89 kB / 0.8689 GB, free: 5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6746/0.6761, allocations: 151.6 MB / 1.017 GB, free: 2.727 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.0545/0.7306, allocations: 60.11 MB / 1.076 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01633/0.747, allocations: 13.11 MB / 1.088 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.7491, allocations: 63.56 kB / 1.088 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002118/0.7512, allocations: 0.8415 MB / 1.089 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005302/0.7565, allocations: 2.165 MB / 1.091 GB, free: 6.195 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003634/0.7602, allocations: 1.446 MB / 1.093 GB, free: 4.762 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005251/0.7654, allocations: 4.341 MB / 1.097 GB, free: 416 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001716/0.7672, allocations: 1.342 MB / 1.098 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003309/0.7705, allocations: 1.581 MB / 1.1 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001332/0.7718, allocations: 1.245 MB / 1.101 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.772, allocations: 144 kB / 1.101 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003065/0.7751, allocations: 1.485 MB / 1.103 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003947/0.7755, allocations: 422.4 kB / 1.103 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0008737/0.7764, allocations: 0.9174 MB / 1.104 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003239/0.7796, allocations: 2.773 MB / 1.107 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.7796, allocations: 0 / 1.107 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7796, allocations: 0 / 1.107 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.554e-05/0.7797, allocations: 0 / 1.107 GB, free: 6.449 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.003345/0.783, allocations: 2.189 MB / 1.109 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.7831, allocations: 12.03 kB / 1.109 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.7832, allocations: 144 kB / 1.109 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003429/0.7867, allocations: 0.5564 MB / 1.11 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/0.789, allocations: 1.406 MB / 1.111 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/0.7892, allocations: 149.3 kB / 1.111 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001657/0.7893, allocations: 104 kB / 1.111 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002893/0.7922, allocations: 1.323 MB / 1.112 GB, free: 408 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.7923, allocations: 4 kB / 1.112 GB, free: 404 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.7924, allocations: 36 kB / 1.113 GB, free: 368 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.631e-05/0.7924, allocations: 27.94 kB / 1.113 GB, free: 340 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003517/0.796, allocations: 1.335 MB / 1.114 GB, free: 15 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.007069/0.803, allocations: 5.453 MB / 1.119 GB, free: 9.191 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005151/0.8082, allocations: 1.339 MB / 1.12 GB, free: 7.828 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.8097, allocations: 0.6036 MB / 1.121 GB, free: 7.219 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008873/0.8106, allocations: 1.232 MB / 1.122 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001699/0.8123, allocations: 0.6627 MB / 1.123 GB, free: 5.039 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 2.645e-06/0.8123, allocations: 0 / 1.123 GB, free: 5.039 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.004774/0.8171, allocations: 1.684 MB / 1.125 GB, free: 3.348 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.8172, allocations: 59.97 kB / 1.125 GB, free: 3.277 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.8188, allocations: 1.279 MB / 1.126 GB, free: 1.988 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.8189, allocations: 45.7 kB / 1.126 GB, free: 1.938 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000527/0.8194, allocations: 0.6541 MB / 1.127 GB, free: 1.273 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.8196, allocations: 244.5 kB / 1.127 GB, free: 1.031 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.8199, allocations: 186.4 kB / 1.127 GB, free: 0.8438 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.8201, allocations: 330 kB / 1.127 GB, free: 0.5156 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001451/0.8215, allocations: 0.5318 MB / 1.128 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001623/0.8231, allocations: 0.7489 MB / 1.129 GB, free: 15.14 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002892/0.8261, allocations: 1.148 MB / 1.13 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.8261, allocations: 0 / 1.13 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003639/0.8297, allocations: 1.403 MB / 1.131 GB, free: 12.53 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.433e-05/0.8298, allocations: 37.69 kB / 1.131 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.8298, allocations: 4 kB / 1.131 GB, free: 12.48 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.8298, allocations: 11.94 kB / 1.131 GB, free: 12.47 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.831, allocations: 255.9 kB / 1.131 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.831, allocations: 8 kB / 1.131 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.8327, allocations: 222.9 kB / 1.132 GB, free: 12 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.652e-05/0.8328, allocations: 39.98 kB / 1.132 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001855/0.8346, allocations: 0.7868 MB / 1.132 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001617/0.8363, allocations: 0.7477 MB / 1.133 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002819/0.8391, allocations: 1.128 MB / 1.134 GB, free: 9.156 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.577e-06/0.8391, allocations: 4 kB / 1.134 GB, free: 9.152 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003751/0.8429, allocations: 1.395 MB / 1.136 GB, free: 7.742 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.678e-05/0.8429, allocations: 38.31 kB / 1.136 GB, free: 7.699 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.8429, allocations: 7.938 kB / 1.136 GB, free: 7.691 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.843, allocations: 8.312 kB / 1.136 GB, free: 7.684 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.8442, allocations: 255.6 kB / 1.136 GB, free: 7.434 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.8442, allocations: 11.94 kB / 1.136 GB, free: 7.422 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.846, allocations: 211.2 kB / 1.136 GB, free: 7.215 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-05/0.8461, allocations: 43.97 kB / 1.136 GB, free: 7.172 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.000336/0.8464, allocations: 223.9 kB / 1.136 GB, free: 6.949 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002784/0.8467, allocations: 146.2 kB / 1.136 GB, free: 6.805 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003869/0.8506, allocations: 1.466 MB / 1.138 GB, free: 5.32 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.8506, allocations: 8 kB / 1.138 GB, free: 5.312 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.8506, allocations: 0 / 1.138 GB, free: 5.312 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003181/0.8538, allocations: 1.23 MB / 1.139 GB, free: 4.051 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008325/0.8622, allocations: 3.194 MB / 1.142 GB, free: 0.6992 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.8622, allocations: 4 kB / 1.142 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.8634, allocations: 224.2 kB / 1.142 GB, free: 488 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.131e-05/0.8635, allocations: 15.86 kB / 1.142 GB, free: 472 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-05/0.8636, allocations: 23.98 kB / 1.142 GB, free: 448 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.397e-05/0.8636, allocations: 11.94 kB / 1.142 GB, free: 436 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/0.8636, allocations: 8 kB / 1.142 GB, free: 428 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00587/0.8695, allocations: 2.216 MB / 1.145 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009838/0.8705, allocations: 346.9 kB / 1.145 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004333/0.8709, allocations: 23.94 kB / 1.145 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001785/0.8727, allocations: 167.8 kB / 1.145 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.8729, allocations: 68.36 kB / 1.145 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.873, allocations: 43.97 kB / 1.145 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001996/0.875, allocations: 0.909 MB / 1.146 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8751, allocations: 0 / 1.146 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003379/0.8784, allocations: 0.7953 MB / 1.147 GB, free: 11.76 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.007404/0.8859, allocations: 3.165 MB / 1.15 GB, free: 8.535 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005772/0.8916, allocations: 2.058 MB / 1.152 GB, free: 6.449 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.8917, allocations: 0 / 1.152 GB, free: 6.449 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.8935, allocations: 0.6835 MB / 1.153 GB, free: 5.77 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004065/0.8976, allocations: 0.7721 MB / 1.153 GB, free: 5.02 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02721/0.9248, allocations: 13.46 MB / 1.167 GB, free: 7.004 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009516/0.9258, allocations: 1.23 MB / 1.168 GB, free: 5.746 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001959/0.9278, allocations: 367.5 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/0.9289, allocations: 0.5968 MB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of SimCode: time 3.356e-06/0.929, allocations: 0 / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.828/3.757, allocations: 43.04 MB / 1.211 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002837/3.757, allocations: 233.4 kB / 1.211 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.737/6.494, allocations: 7.688 kB / 1.211 GB, free: 10.03 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)