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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009019/0.0009019, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005371/0.005371, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.288/1.288, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.229/2.229, allocations: 390.9 MB / 0.6664 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003451, allocations: 8 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.07/1.07, allocations: 142.4 MB / 0.9552 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.07539/1.146, allocations: 58.99 MB / 1.013 GB, free: 4.16 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02671/1.173, allocations: 13.12 MB / 1.026 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005059/1.178, allocations: 63.56 kB / 1.026 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003817/1.182, allocations: 0.8102 MB / 1.026 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01049/1.192, allocations: 2.148 MB / 1.029 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005973/1.198, allocations: 1.405 MB / 1.03 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01069/1.209, allocations: 5.523 MB / 1.035 GB, free: 13.04 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003203/1.212, allocations: 1.088 MB / 1.036 GB, free: 11.93 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004867/1.217, allocations: 1.33 MB / 1.038 GB, free: 10.59 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003457/1.22, allocations: 1.155 MB / 1.039 GB, free: 9.43 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0007296/1.221, allocations: 56 kB / 1.039 GB, free: 9.375 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005546/1.227, allocations: 1.372 MB / 1.04 GB, free: 8 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0009943/1.228, allocations: 338.5 kB / 1.04 GB, free: 7.668 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002922/1.231, allocations: 0.8447 MB / 1.041 GB, free: 6.812 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.007326/1.238, allocations: 2.663 MB / 1.044 GB, free: 4.141 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/1.238, allocations: 0 / 1.044 GB, free: 4.141 MB / 0.795 GB Notification: Performance of FrontEnd: time 4.207e-06/1.238, allocations: 7.938 kB / 1.044 GB, free: 4.133 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001267/1.238, allocations: 0 / 1.044 GB, free: 4.133 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.005947/1.244, allocations: 1.906 MB / 1.046 GB, free: 2.164 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 6.455e-05/1.244, allocations: 8.031 kB / 1.046 GB, free: 2.156 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004378/1.245, allocations: 143.9 kB / 1.046 GB, free: 2.008 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003806/1.249, allocations: 0.6423 MB / 1.047 GB, free: 1.363 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/1.252, allocations: 1.4 MB / 1.048 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/1.252, allocations: 149.4 kB / 1.048 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/1.252, allocations: 100 kB / 1.048 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003043/1.255, allocations: 1.346 MB / 1.049 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/1.255, allocations: 3.906 kB / 1.049 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/1.255, allocations: 47.97 kB / 1.05 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.421e-05/1.256, allocations: 27.94 kB / 1.05 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003722/1.259, allocations: 1.386 MB / 1.051 GB, free: 12.8 MB / 0.8106 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.007831/1.267, allocations: 5.398 MB / 1.056 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/1.27, allocations: 1.092 MB / 1.057 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/1.271, allocations: 0.6393 MB / 1.058 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001143/1.272, allocations: 1.236 MB / 1.059 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001845/1.274, allocations: 0.7018 MB / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.575e-06/1.274, allocations: 0 / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.005291/1.28, allocations: 1.801 MB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.552e-05/1.28, allocations: 59.97 kB / 1.062 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/1.282, allocations: 1.32 MB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.899e-05/1.282, allocations: 45.7 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007482/1.283, allocations: 0.6738 MB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003277/1.283, allocations: 236.6 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/1.283, allocations: 65.69 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001901/1.283, allocations: 337.9 kB / 1.064 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001679/1.285, allocations: 0.5602 MB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/1.287, allocations: 0.7782 MB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003321/1.29, allocations: 1.206 MB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/1.29, allocations: 4 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004244/1.295, allocations: 1.481 MB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002433/1.295, allocations: 209.1 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/1.295, allocations: 4 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.749e-05/1.295, allocations: 12 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/1.296, allocations: 271.6 kB / 1.069 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/1.296, allocations: 12 kB / 1.069 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/1.298, allocations: 239 kB / 1.069 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.996e-05/1.298, allocations: 39.98 kB / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.505e-06/1.298, allocations: 0 / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003572/1.302, allocations: 1.321 MB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/1.302, allocations: 4 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/1.302, allocations: 8 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/1.303, allocations: 267.8 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/1.303, allocations: 19.86 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/1.305, allocations: 227.1 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-05/1.305, allocations: 39.98 kB / 1.071 GB, free: 7.602 MB / 0.8262 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 (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 (95): * Single equations (assignments): 94 * 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.001011/1.306, allocations: 408.9 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002607/1.306, allocations: 154.1 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004146/1.311, allocations: 1.54 MB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.65e-05/1.311, allocations: 11.94 kB / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/1.311, allocations: 0 / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003371/1.314, allocations: 1.3 MB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007003/1.321, allocations: 3.285 MB / 1.077 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/1.321, allocations: 4 kB / 1.077 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/1.322, allocations: 239.7 kB / 1.077 GB, free: 464 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.715e-05/1.322, allocations: 8 kB / 1.077 GB, free: 456 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.076e-05/1.322, allocations: 39.92 kB / 1.078 GB, free: 416 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.458e-06/1.322, allocations: 7.938 kB / 1.078 GB, free: 408 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/1.322, allocations: 8 kB / 1.078 GB, free: 400 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005777/1.328, allocations: 2.337 MB / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007496/1.329, allocations: 378.7 kB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003303/1.329, allocations: 19.94 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001633/1.331, allocations: 175.9 kB / 1.08 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/1.331, allocations: 68.36 kB / 1.08 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.749e-05/1.331, allocations: 39.97 kB / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00163/1.333, allocations: 0.9451 MB / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/1.333, allocations: 4 kB / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002953/1.336, allocations: 0.7875 MB / 1.082 GB, free: 11.55 MB / 0.8419 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 (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.007748/1.344, allocations: 3.296 MB / 1.085 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00596/1.35, allocations: 2.101 MB / 1.087 GB, free: 6.062 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.35, allocations: 3.938 kB / 1.087 GB, free: 6.059 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.002007/1.352, allocations: 0.7186 MB / 1.088 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005369/1.357, allocations: 0.7644 MB / 1.089 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02996/1.387, allocations: 13.89 MB / 1.102 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/1.388, allocations: 1.249 MB / 1.104 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002029/1.39, allocations: 375.5 kB / 1.104 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/1.391, allocations: 0.5968 MB / 1.105 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of SimCode: time 1.482e-06/1.391, allocations: 0 / 1.105 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.025/4.416, allocations: 43.59 MB / 1.147 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002496/4.417, allocations: 262.9 kB / 1.147 GB, free: 8.594 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.2/7.617, allocations: 0 / 1.147 GB, free: 8.594 MB / 0.9044 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/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)