Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.ElectricEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_9_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.0009173/0.0009174, allocations: 90.52 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.007636/0.007636, allocations: 173.9 kB / 16.26 MB, free: 6.613 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.299/1.299, allocations: 223.3 MB / 240.3 MB, free: 5.324 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.246/2.246, allocations: 390.9 MB / 0.6664 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000433/0.0004331, allocations: 11.98 kB / 0.8161 GB, free: 13.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.048/1.048, allocations: 142.4 MB / 0.9552 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.07567/1.124, allocations: 58.99 MB / 1.013 GB, free: 4.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02552/1.149, allocations: 13.07 MB / 1.026 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004885/1.154, allocations: 55.62 kB / 1.026 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003133/1.157, allocations: 0.8141 MB / 1.026 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.009032/1.167, allocations: 2.14 MB / 1.028 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005193/1.172, allocations: 1.403 MB / 1.03 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.008835/1.181, allocations: 5.523 MB / 1.035 GB, free: 13.12 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002742/1.183, allocations: 1.084 MB / 1.036 GB, free: 12.01 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004202/1.188, allocations: 1.334 MB / 1.038 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003098/1.191, allocations: 1.155 MB / 1.039 GB, free: 9.512 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0006828/1.191, allocations: 60 kB / 1.039 GB, free: 9.453 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004741/1.196, allocations: 1.337 MB / 1.04 GB, free: 8.113 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0009534/1.197, allocations: 334.5 kB / 1.04 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002576/1.2, allocations: 0.8292 MB / 1.041 GB, free: 6.945 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.006316/1.206, allocations: 2.624 MB / 1.044 GB, free: 4.312 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/1.206, allocations: 0 / 1.044 GB, free: 4.312 MB / 0.795 GB Notification: Performance of FrontEnd: time 5.17e-06/1.206, allocations: 0 / 1.044 GB, free: 4.312 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.981e-05/1.206, allocations: 3.938 kB / 1.044 GB, free: 4.309 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.004097/1.21, allocations: 1.876 MB / 1.046 GB, free: 2.371 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/1.21, allocations: 12.03 kB / 1.046 GB, free: 2.359 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002087/1.21, allocations: 143.9 kB / 1.046 GB, free: 2.211 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003451/1.214, allocations: 0.6423 MB / 1.046 GB, free: 1.566 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002376/1.216, allocations: 1.384 MB / 1.048 GB, free: 132 kB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/1.216, allocations: 145.5 kB / 1.048 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/1.217, allocations: 100 kB / 1.048 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002961/1.22, allocations: 1.334 MB / 1.049 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/1.22, allocations: 0 / 1.049 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/1.22, allocations: 39.98 kB / 1.049 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.796e-05/1.22, allocations: 31.88 kB / 1.049 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003588/1.223, allocations: 1.374 MB / 1.051 GB, free: 13.05 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.007593/1.231, allocations: 5.378 MB / 1.056 GB, free: 7.328 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005681/1.237, allocations: 1.481 MB / 1.057 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/1.238, allocations: 0.6315 MB / 1.058 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001241/1.24, allocations: 1.235 MB / 1.059 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001929/1.242, allocations: 0.6784 MB / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 3.336e-06/1.242, allocations: 4 kB / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.005725/1.247, allocations: 1.785 MB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/1.248, allocations: 63.91 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00208/1.25, allocations: 1.267 MB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001279/1.25, allocations: 45.7 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007431/1.25, allocations: 0.6501 MB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003305/1.251, allocations: 240.6 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/1.251, allocations: 73.67 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001832/1.251, allocations: 334 kB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001615/1.253, allocations: 0.5484 MB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/1.255, allocations: 0.7743 MB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003301/1.258, allocations: 1.19 MB / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/1.258, allocations: 4 kB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004099/1.262, allocations: 1.462 MB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001938/1.262, allocations: 212.2 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/1.262, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.807e-05/1.262, allocations: 8 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/1.264, allocations: 271.6 kB / 1.069 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/1.264, allocations: 8 kB / 1.069 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/1.266, allocations: 243 kB / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/1.266, allocations: 43.97 kB / 1.069 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.947e-06/1.266, allocations: 4 kB / 1.069 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003504/1.269, allocations: 1.298 MB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/1.269, allocations: 4 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/1.269, allocations: 4.312 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/1.27, allocations: 275.6 kB / 1.07 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.107e-05/1.27, allocations: 15.86 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/1.272, allocations: 239.2 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.401e-05/1.272, allocations: 31.98 kB / 1.071 GB, free: 7.66 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.0008041/1.273, allocations: 412.9 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002212/1.273, allocations: 146.2 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003996/1.277, allocations: 1.52 MB / 1.073 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/1.277, allocations: 19.91 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/1.277, allocations: 0 / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003328/1.281, allocations: 1.285 MB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006998/1.288, allocations: 3.249 MB / 1.077 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/1.288, allocations: 4 kB / 1.077 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/1.289, allocations: 240.2 kB / 1.077 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-05/1.289, allocations: 8 kB / 1.077 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.444e-05/1.289, allocations: 27.92 kB / 1.077 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/1.289, allocations: 11.94 kB / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/1.289, allocations: 4 kB / 1.077 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005778/1.295, allocations: 2.306 MB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007667/1.295, allocations: 370.8 kB / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/1.296, allocations: 23.92 kB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/1.297, allocations: 183.7 kB / 1.08 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/1.298, allocations: 72.41 kB / 1.08 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.735e-05/1.298, allocations: 43.91 kB / 1.08 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001525/1.299, allocations: 0.9009 MB / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/1.299, allocations: 0 / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002603/1.302, allocations: 0.7875 MB / 1.082 GB, free: 11.75 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.007375/1.309, allocations: 3.249 MB / 1.085 GB, free: 8.438 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.005677/1.315, allocations: 2.081 MB / 1.087 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.315, allocations: 4 kB / 1.087 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001893/1.317, allocations: 0.7147 MB / 1.088 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004894/1.322, allocations: 0.7606 MB / 1.089 GB, free: 4.855 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02594/1.348, allocations: 13.43 MB / 1.102 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/1.349, allocations: 1.234 MB / 1.103 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002014/1.351, allocations: 359.4 kB / 1.103 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/1.352, allocations: 0.5891 MB / 1.104 GB, free: 4.672 MB / 0.8575 GB Notification: Performance of SimCode: time 8.01e-07/1.352, allocations: 0 / 1.104 GB, free: 4.672 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.012/4.364, allocations: 42.9 MB / 1.146 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002967/4.365, allocations: 231.5 kB / 1.146 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.2/7.564, allocations: 0 / 1.146 GB, free: 10.04 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)