Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 251.9 MB / 266.9 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001296/0.001297, allocations: 193.4 kB / 326.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.851/1.851, allocations: 205.4 MB / 0.5775 GB, free: 20.33 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 82.36 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003857, allocations: 10.16 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2315, allocations: 106.3 MB / 0.9001 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05544/0.287, allocations: 50.61 MB / 0.9496 GB, free: 13.13 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01413/0.3012, allocations: 11.25 MB / 0.9605 GB, free: 1.871 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002651/0.3039, allocations: 51.62 kB / 0.9606 GB, free: 1.82 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.002929/0.3068, allocations: 0.9252 MB / 0.9615 GB, free: 0.8906 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.00726/0.3141, allocations: 2.231 MB / 0.9637 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.005794/0.3199, allocations: 1.617 MB / 0.9653 GB, free: 13.07 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.005444/0.3254, allocations: 2.53 MB / 0.9677 GB, free: 10.53 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002082/0.3275, allocations: 0.9891 MB / 0.9687 GB, free: 9.523 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002864/0.3304, allocations: 1.164 MB / 0.9698 GB, free: 8.355 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001777/0.3322, allocations: 0.7893 MB / 0.9706 GB, free: 7.559 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0004073/0.3326, allocations: 56 kB / 0.9707 GB, free: 7.504 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003138/0.3357, allocations: 0.9284 MB / 0.9716 GB, free: 6.574 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0005605/0.3363, allocations: 298.7 kB / 0.9718 GB, free: 6.281 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0007132/0.337, allocations: 360.8 kB / 0.9722 GB, free: 5.922 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.003056/0.3401, allocations: 1.878 MB / 0.974 GB, free: 4.039 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3401, allocations: 0 / 0.974 GB, free: 4.039 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3402, allocations: 0 / 0.974 GB, free: 4.039 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.088e-05/0.3402, allocations: 0 / 0.974 GB, free: 4.039 MB / 0.6198 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.004192/0.3444, allocations: 1.894 MB / 0.9759 GB, free: 2.078 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.3445, allocations: 8.031 kB / 0.9759 GB, free: 2.07 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003295/0.3448, allocations: 147.7 kB / 0.976 GB, free: 1.918 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003569/0.3484, allocations: 0.6456 MB / 0.9767 GB, free: 1.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0028/0.3512, allocations: 1.23 MB / 0.9779 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.3514, allocations: 141.4 kB / 0.978 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.3517, allocations: 100 kB / 0.9781 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003198/0.3549, allocations: 1.33 MB / 0.9794 GB, free: 14.38 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.3549, allocations: 4 kB / 0.9794 GB, free: 14.37 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.355, allocations: 43.94 kB / 0.9794 GB, free: 14.33 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.074e-05/0.3551, allocations: 28 kB / 0.9795 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003837/0.3589, allocations: 1.382 MB / 0.9808 GB, free: 12.92 MB / 0.6355 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.009107/0.3681, allocations: 5.367 MB / 0.986 GB, free: 7.199 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002771/0.3709, allocations: 1.123 MB / 0.9871 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001052/0.3719, allocations: 1.232 MB / 0.9883 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001843/0.3738, allocations: 0.6784 MB / 0.989 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=69): time 5.019e-06/0.3738, allocations: 0 / 0.989 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of matching and sorting (n=69): time 0.005244/0.3791, allocations: 1.797 MB / 0.9908 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.3792, allocations: 71.95 kB / 0.9908 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002342/0.3815, allocations: 1.292 MB / 0.9921 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.3817, allocations: 45.7 kB / 0.9921 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000764/0.3825, allocations: 0.6622 MB / 0.9928 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003257/0.3828, allocations: 236.6 kB / 0.993 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.213e-05/0.3829, allocations: 16 kB / 0.993 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3831, allocations: 337.9 kB / 0.9933 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/0.3847, allocations: 0.5563 MB / 0.9939 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001869/0.3866, allocations: 0.782 MB / 0.9947 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.3884, allocations: 0.598 MB / 0.9952 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.3884, allocations: 4 kB / 0.9952 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004172/0.3926, allocations: 1.465 MB / 0.9967 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005705/0.3932, allocations: 1.199 MB / 0.9978 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3932, allocations: 4 kB / 0.9978 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.129e-05/0.3933, allocations: 11.95 kB / 0.9979 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.3946, allocations: 279.6 kB / 0.9981 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.453e-05/0.3946, allocations: 8 kB / 0.9981 GB, free: 10.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.3964, allocations: 238.9 kB / 0.9984 GB, free: 9.984 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.3965, allocations: 39.98 kB / 0.9984 GB, free: 9.945 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.3966, allocations: 8 kB / 0.9984 GB, free: 9.938 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003717/0.4003, allocations: 1.309 MB / 0.9997 GB, free: 8.617 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.4003, allocations: 4 kB / 0.9997 GB, free: 8.613 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.4003, allocations: 8 kB / 0.9997 GB, free: 8.605 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.4016, allocations: 276 kB / 1 GB, free: 8.336 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.405e-05/0.4017, allocations: 11.94 kB / 1 GB, free: 8.324 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001827/0.4035, allocations: 235.2 kB / 1 GB, free: 8.094 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.4036, allocations: 35.97 kB / 1 GB, free: 8.059 MB / 0.6511 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.0008439/0.4045, allocations: 420.8 kB / 1.001 GB, free: 7.637 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004537/0.405, allocations: 150.1 kB / 1.001 GB, free: 7.488 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004231/0.4092, allocations: 1.544 MB / 1.002 GB, free: 5.926 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.4092, allocations: 8 kB / 1.002 GB, free: 5.918 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4093, allocations: 4 kB / 1.002 GB, free: 5.914 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003299/0.4126, allocations: 1.296 MB / 1.004 GB, free: 4.59 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007854/0.4204, allocations: 3.265 MB / 1.007 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/0.4205, allocations: 4 kB / 1.007 GB, free: 1.16 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.4217, allocations: 240.2 kB / 1.007 GB, free: 0.9258 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.35e-05/0.4217, allocations: 8 kB / 1.007 GB, free: 0.918 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-05/0.4218, allocations: 23.98 kB / 1.007 GB, free: 0.8945 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.541e-05/0.4218, allocations: 11.94 kB / 1.007 GB, free: 0.8828 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.4218, allocations: 4 kB / 1.007 GB, free: 0.8789 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00604/0.4279, allocations: 2.612 MB / 1.01 GB, free: 14.01 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/0.429, allocations: 378.7 kB / 1.01 GB, free: 13.62 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00039/0.4294, allocations: 20 kB / 1.01 GB, free: 13.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/0.4311, allocations: 179.4 kB / 1.01 GB, free: 13.43 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.4313, allocations: 72.38 kB / 1.01 GB, free: 13.36 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.744e-05/0.4314, allocations: 39.97 kB / 1.01 GB, free: 13.32 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.00162/0.433, allocations: 0.9254 MB / 1.011 GB, free: 12.4 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4331, allocations: 0 / 1.011 GB, free: 12.4 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002607/0.4357, allocations: 0.7915 MB / 1.012 GB, free: 11.61 MB / 0.6667 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.007852/0.4435, allocations: 4.741 MB / 1.017 GB, free: 6.723 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.005547/0.4491, allocations: 2.089 MB / 1.019 GB, free: 4.609 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.4492, allocations: 0 / 1.019 GB, free: 4.609 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.4512, allocations: 0.7186 MB / 1.019 GB, free: 3.891 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004346/0.4556, allocations: 0.7327 MB / 1.02 GB, free: 3.172 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00917/0.4648, allocations: 5.85 MB / 1.026 GB, free: 13.16 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.466, allocations: 1.28 MB / 1.027 GB, free: 11.85 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002102/0.4681, allocations: 354.8 kB / 1.027 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009903/0.4691, allocations: 0.5813 MB / 1.028 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of SimCode: time 2.986e-06/0.4691, allocations: 0 / 1.028 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4556/0.9247, allocations: 42.12 MB / 1.069 GB, free: 143.7 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.9249, allocations: 234.7 kB / 1.069 GB, free: 143.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.442/4.367, allocations: 0.875 kB / 1.069 GB, free: 143.5 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)