Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.834/1.834, allocations: 288.2 MB / 303.2 MB, free: 8.121 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 185 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.689/1.689, allocations: 205.4 MB / 0.6305 GB, free: 9.992 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009001/0.0009005, allocations: 98.89 kB / 0.7439 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004999/0.0005001, allocations: 15.75 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2579, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.04417/0.3021, allocations: 50.58 MB / 1.029 GB, free: 8.895 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.01823/0.3204, allocations: 11.28 MB / 1.04 GB, free: 13.6 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002901/0.3234, allocations: 55.62 kB / 1.04 GB, free: 13.54 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.003607/0.327, allocations: 0.9252 MB / 1.041 GB, free: 12.61 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.008098/0.3352, allocations: 2.223 MB / 1.043 GB, free: 10.39 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.005863/0.341, allocations: 1.723 MB / 1.045 GB, free: 8.695 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.006573/0.3476, allocations: 2.538 MB / 1.047 GB, free: 6.152 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002261/0.3499, allocations: 0.9969 MB / 1.048 GB, free: 5.137 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003157/0.3531, allocations: 1.172 MB / 1.049 GB, free: 3.961 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00188/0.355, allocations: 0.7893 MB / 1.05 GB, free: 3.168 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0002065/0.3552, allocations: 60 kB / 1.05 GB, free: 3.109 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.3583, allocations: 0.9323 MB / 1.051 GB, free: 2.176 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.0003907/0.3587, allocations: 302.7 kB / 1.051 GB, free: 1.879 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.0007707/0.3595, allocations: 356.8 kB / 1.052 GB, free: 1.523 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.003294/0.3628, allocations: 1.886 MB / 1.053 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3628, allocations: 0 / 1.053 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.515e-06/0.3628, allocations: 3.938 kB / 1.054 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.579e-05/0.3629, allocations: 0 / 1.054 GB, free: 15.63 MB / 0.6823 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.004384/0.3673, allocations: 1.894 MB / 1.055 GB, free: 13.67 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.3673, allocations: 8.031 kB / 1.055 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003408/0.3677, allocations: 143.7 kB / 1.055 GB, free: 13.51 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003482/0.3712, allocations: 0.6379 MB / 1.056 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002683/0.3739, allocations: 1.234 MB / 1.057 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.3741, allocations: 149.4 kB / 1.057 GB, free: 11.43 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.3742, allocations: 96 kB / 1.058 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/0.3772, allocations: 1.326 MB / 1.059 GB, free: 9.973 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.3772, allocations: 7.938 kB / 1.059 GB, free: 9.965 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.3774, allocations: 40 kB / 1.059 GB, free: 9.926 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.752e-05/0.3774, allocations: 27.98 kB / 1.059 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003565/0.381, allocations: 1.374 MB / 1.06 GB, free: 8.523 MB / 0.6823 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.008796/0.3898, allocations: 5.398 MB / 1.066 GB, free: 2.773 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002774/0.3926, allocations: 1.122 MB / 1.067 GB, free: 1.605 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009741/0.3936, allocations: 1.228 MB / 1.068 GB, free: 104 kB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5488/0.9424, allocations: 0.6904 MB / 1.069 GB, free: 89.94 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=69): time 5.851e-06/0.9425, allocations: 0 / 1.069 GB, free: 89.94 MB / 0.6823 GB Notification: Performance of matching and sorting (n=69): time 0.005858/0.9484, allocations: 1.79 MB / 1.07 GB, free: 89.9 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/0.9485, allocations: 62.44 kB / 1.07 GB, free: 89.84 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/0.9505, allocations: 1.298 MB / 1.072 GB, free: 89.39 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001584/0.9506, allocations: 44.88 kB / 1.072 GB, free: 89.35 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005746/0.9512, allocations: 0.67 MB / 1.072 GB, free: 88.9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002317/0.9515, allocations: 239.5 kB / 1.073 GB, free: 88.74 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.165e-05/0.9515, allocations: 15.25 kB / 1.073 GB, free: 88.73 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.208e-05/0.9516, allocations: 336.4 kB / 1.073 GB, free: 88.41 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001702/0.9533, allocations: 0.5508 MB / 1.073 GB, free: 88.29 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.9552, allocations: 0.7758 MB / 1.074 GB, free: 87.92 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.957, allocations: 0.6034 MB / 1.075 GB, free: 87.73 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.957, allocations: 1.656 kB / 1.075 GB, free: 87.73 MB / 0.6823 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004199/0.9612, allocations: 1.466 MB / 1.076 GB, free: 87.27 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003246/0.9615, allocations: 1.202 MB / 1.077 GB, free: 85.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.9616, allocations: 2.656 kB / 1.077 GB, free: 85.98 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.982e-05/0.9616, allocations: 8.062 kB / 1.077 GB, free: 85.98 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/0.963, allocations: 276.1 kB / 1.078 GB, free: 85.97 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.131e-05/0.9631, allocations: 11.36 kB / 1.078 GB, free: 85.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/0.9652, allocations: 241.3 kB / 1.078 GB, free: 85.91 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/0.9654, allocations: 43.78 kB / 1.078 GB, free: 85.9 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.9654, allocations: 3.438 kB / 1.078 GB, free: 85.9 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004074/0.9695, allocations: 1.309 MB / 1.079 GB, free: 85.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.9695, allocations: 3.438 kB / 1.079 GB, free: 85.54 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.9696, allocations: 11.09 kB / 1.079 GB, free: 85.54 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.971, allocations: 277.4 kB / 1.079 GB, free: 85.52 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.971, allocations: 11.53 kB / 1.079 GB, free: 85.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.9729, allocations: 232.5 kB / 1.08 GB, free: 85.46 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.9731, allocations: 38.44 kB / 1.08 GB, free: 85.45 MB / 0.6823 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.0009831/0.9741, allocations: 424.9 kB / 1.08 GB, free: 85.13 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003297/0.9744, allocations: 145.1 kB / 1.08 GB, free: 85.06 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00446/0.9789, allocations: 1.542 MB / 1.082 GB, free: 84.57 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.9789, allocations: 8.531 kB / 1.082 GB, free: 84.57 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.779e-06/0.9789, allocations: 1.031 kB / 1.082 GB, free: 84.57 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003458/0.9824, allocations: 1.295 MB / 1.083 GB, free: 84.11 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007898/0.9903, allocations: 3.271 MB / 1.086 GB, free: 82.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.9904, allocations: 4.375 kB / 1.086 GB, free: 82.57 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.9916, allocations: 233.6 kB / 1.086 GB, free: 82.55 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-05/0.9916, allocations: 9.641 kB / 1.086 GB, free: 82.55 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.523e-05/0.9917, allocations: 28.31 kB / 1.087 GB, free: 82.54 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.449e-05/0.9917, allocations: 8.578 kB / 1.087 GB, free: 82.54 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-06/0.9917, allocations: 17.2 kB / 1.087 GB, free: 82.52 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006076/0.9978, allocations: 2.608 MB / 1.089 GB, free: 81.12 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.9989, allocations: 373.4 kB / 1.089 GB, free: 80.86 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.9992, allocations: 25.8 kB / 1.089 GB, free: 80.85 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/1.001, allocations: 182.9 kB / 1.09 GB, free: 80.82 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/1.001, allocations: 77.62 kB / 1.09 GB, free: 80.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/1.001, allocations: 38.45 kB / 1.09 GB, free: 80.79 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001843/1.003, allocations: 0.9252 MB / 1.091 GB, free: 80.43 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.21e-07/1.003, allocations: 0 / 1.091 GB, free: 80.43 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002741/1.006, allocations: 0.7999 MB / 1.091 GB, free: 80.29 MB / 0.6823 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.007458/1.013, allocations: 4.741 MB / 1.096 GB, free: 77.22 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.005868/1.019, allocations: 2.089 MB / 1.098 GB, free: 76.58 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/1.019, allocations: 3.969 kB / 1.098 GB, free: 76.58 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002094/1.021, allocations: 0.711 MB / 1.099 GB, free: 76.38 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004712/1.026, allocations: 0.7527 MB / 1.1 GB, free: 76.2 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00899/1.035, allocations: 5.843 MB / 1.105 GB, free: 71.98 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008818/1.036, allocations: 1.275 MB / 1.106 GB, free: 71.22 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002146/1.038, allocations: 361.3 kB / 1.107 GB, free: 71.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007995/1.039, allocations: 0.5805 MB / 1.107 GB, free: 70.61 MB / 0.6823 GB Notification: Performance of SimCode: time 9.62e-07/1.039, allocations: 1.25 kB / 1.107 GB, free: 70.61 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07917/1.118, allocations: 42.25 MB / 1.149 GB, free: 35.77 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002561/1.118, allocations: 229.5 kB / 1.149 GB, free: 35.54 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.328/4.446, allocations: 2.406 kB / 1.149 GB, free: 35.54 MB / 0.6823 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)