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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001061/0.001061, 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.0009972/0.0009971, allocations: 192.1 kB / 16.25 MB, free: 6.633 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.271/1.271, allocations: 222.9 MB / 239.9 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.374/2.374, allocations: 390.2 MB / 0.6644 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.91 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5252/0.5266, allocations: 140.4 MB / 0.9492 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05595/0.5826, allocations: 59.97 MB / 1.008 GB, free: 5.91 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01785/0.6005, allocations: 13.1 MB / 1.021 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00208/0.6026, allocations: 67.56 kB / 1.021 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002447/0.605, allocations: 0.8493 MB / 1.021 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.005393/0.6105, allocations: 2.158 MB / 1.024 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003442/0.6139, allocations: 1.424 MB / 1.025 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004909/0.6188, allocations: 4.306 MB / 1.029 GB, free: 15.96 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.6206, allocations: 1.317 MB / 1.03 GB, free: 14.62 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003304/0.6239, allocations: 1.589 MB / 1.032 GB, free: 13.03 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001621/0.6256, allocations: 1.225 MB / 1.033 GB, free: 11.8 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001945/0.6258, allocations: 140 kB / 1.033 GB, free: 11.66 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002501/0.6283, allocations: 1.497 MB / 1.035 GB, free: 10.16 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003601/0.6286, allocations: 426.5 kB / 1.035 GB, free: 9.742 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0008395/0.6295, allocations: 0.9211 MB / 1.036 GB, free: 8.816 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003013/0.6325, allocations: 2.773 MB / 1.039 GB, free: 6.035 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.6325, allocations: 0 / 1.039 GB, free: 6.035 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.313e-06/0.6325, allocations: 0 / 1.039 GB, free: 6.035 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.549e-05/0.6326, allocations: 0 / 1.039 GB, free: 6.035 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.003386/0.6359, allocations: 2.213 MB / 1.041 GB, free: 3.754 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.636, allocations: 12.03 kB / 1.041 GB, free: 3.742 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00017/0.6362, allocations: 147.9 kB / 1.041 GB, free: 3.59 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003764/0.6399, allocations: 0.6032 MB / 1.042 GB, free: 2.984 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.642, allocations: 1.393 MB / 1.043 GB, free: 1.539 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.6422, allocations: 149.4 kB / 1.043 GB, free: 1.383 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.6423, allocations: 103.9 kB / 1.043 GB, free: 1.281 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00286/0.6452, allocations: 1.315 MB / 1.045 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.6452, allocations: 11.98 kB / 1.045 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.6454, allocations: 36 kB / 1.045 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-05/0.6454, allocations: 31.88 kB / 1.045 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00358/0.649, allocations: 1.319 MB / 1.046 GB, free: 14.53 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.006423/0.6554, allocations: 5.367 MB / 1.051 GB, free: 8.809 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/0.658, allocations: 1.055 MB / 1.052 GB, free: 7.711 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/0.6596, allocations: 0.6058 MB / 1.053 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009068/0.6605, allocations: 1.236 MB / 1.054 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001885/0.6624, allocations: 0.6589 MB / 1.055 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.594e-06/0.6624, allocations: 0 / 1.055 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.004929/0.6674, allocations: 1.696 MB / 1.056 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.6674, allocations: 67.91 kB / 1.056 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001569/0.669, allocations: 1.324 MB / 1.058 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.116e-05/0.6691, allocations: 41.7 kB / 1.058 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/0.6696, allocations: 0.67 MB / 1.058 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.6699, allocations: 240.5 kB / 1.059 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.6702, allocations: 174.5 kB / 1.059 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.6703, allocations: 334 kB / 1.059 GB, free: 340 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.6719, allocations: 0.5239 MB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.6737, allocations: 0.7547 MB / 1.06 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003168/0.6769, allocations: 1.136 MB / 1.061 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.6769, allocations: 4 kB / 1.061 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003792/0.6807, allocations: 1.411 MB / 1.063 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.6807, allocations: 39.73 kB / 1.063 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.6807, allocations: 7.938 kB / 1.063 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.6808, allocations: 7.938 kB / 1.063 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.6821, allocations: 252 kB / 1.063 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.6821, allocations: 11.92 kB / 1.063 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.6836, allocations: 226.9 kB / 1.063 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.21e-05/0.6837, allocations: 39.98 kB / 1.063 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001896/0.6856, allocations: 0.7907 MB / 1.064 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001733/0.6874, allocations: 0.743 MB / 1.065 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00307/0.6904, allocations: 1.124 MB / 1.066 GB, free: 9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.358e-06/0.6905, allocations: 4 kB / 1.066 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003661/0.6941, allocations: 1.403 MB / 1.067 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.6942, allocations: 37.69 kB / 1.067 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.6942, allocations: 4.312 kB / 1.067 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.025e-06/0.6942, allocations: 11.94 kB / 1.067 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.6954, allocations: 251.7 kB / 1.068 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.6955, allocations: 7.938 kB / 1.068 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.6969, allocations: 211.3 kB / 1.068 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-05/0.697, allocations: 39.98 kB / 1.068 GB, free: 7.016 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.0002311/0.6973, allocations: 226 kB / 1.068 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002289/0.6975, allocations: 150.1 kB / 1.068 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003901/0.7014, allocations: 1.478 MB / 1.07 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.7014, allocations: 4 kB / 1.07 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.7015, allocations: 4 kB / 1.07 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003226/0.7047, allocations: 1.234 MB / 1.071 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006108/0.7108, allocations: 3.214 MB / 1.074 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.7108, allocations: 4 kB / 1.074 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.712, allocations: 228.2 kB / 1.074 GB, free: 276 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/0.712, allocations: 11.94 kB / 1.074 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.871e-05/0.7121, allocations: 23.98 kB / 1.074 GB, free: 240 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-05/0.7121, allocations: 11.94 kB / 1.074 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.7121, allocations: 7.984 kB / 1.074 GB, free: 220 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00536/0.7175, allocations: 2.239 MB / 1.077 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005026/0.718, allocations: 354.8 kB / 1.077 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002048/0.7182, allocations: 20 kB / 1.077 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.7197, allocations: 159.7 kB / 1.077 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.7198, allocations: 72.34 kB / 1.077 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-05/0.7199, allocations: 47.97 kB / 1.077 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001219/0.7212, allocations: 0.9412 MB / 1.078 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7212, allocations: 0 / 1.078 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00178/0.7229, allocations: 0.7954 MB / 1.079 GB, free: 11.5 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.006564/0.7295, allocations: 3.176 MB / 1.082 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.005401/0.7349, allocations: 2.066 MB / 1.084 GB, free: 6.172 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.735, allocations: 4 kB / 1.084 GB, free: 6.168 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.7368, allocations: 0.6834 MB / 1.085 GB, free: 5.484 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003168/0.74, allocations: 0.7534 MB / 1.085 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02522/0.7652, allocations: 13.66 MB / 1.099 GB, free: 6.547 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008413/0.7661, allocations: 1.249 MB / 1.1 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001711/0.7678, allocations: 371.5 kB / 1.1 GB, free: 4.898 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008593/0.7687, allocations: 0.5968 MB / 1.101 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of SimCode: time 5.41e-07/0.7687, allocations: 3.938 kB / 1.101 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1337/0.9023, allocations: 43.5 MB / 1.143 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003043/0.9027, allocations: 252.4 kB / 1.144 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.229/4.131, allocations: 4 kB / 1.144 GB, free: 9.098 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)