Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_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.0008976/0.0008976, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005593/0.005593, allocations: 170.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.4 MB / 222.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.713/1.713, allocations: 292.7 MB / 0.5502 GB, free: 14.45 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005163/0.0005164, allocations: 13.88 kB / 0.6744 GB, free: 25.77 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2047, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.0585/0.2632, allocations: 58.99 MB / 0.8456 GB, free: 288 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01934/0.2826, allocations: 13.04 MB / 0.8583 GB, free: 3.207 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002644/0.2852, allocations: 59.56 kB / 0.8584 GB, free: 3.148 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002761/0.288, allocations: 0.8041 MB / 0.8592 GB, free: 2.34 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.006429/0.2945, allocations: 2.134 MB / 0.8612 GB, free: 204 kB / 0.67 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Chillers/BaseClasses/warnIfPerformanceOutOfBounds.mo:2:1-41:33:writable] Warning: Pure function ‘Buildings.Fluid.Chillers.BaseClasses.warnIfPerformanceOutOfBounds‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.004295/0.2988, allocations: 1.41 MB / 0.8626 GB, free: 14.8 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.006479/0.3053, allocations: 5.518 MB / 0.868 GB, free: 9.273 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002057/0.3074, allocations: 1.092 MB / 0.8691 GB, free: 8.148 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002921/0.3103, allocations: 1.33 MB / 0.8704 GB, free: 6.812 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002003/0.3123, allocations: 1.155 MB / 0.8715 GB, free: 5.652 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003479/0.3127, allocations: 56 kB / 0.8716 GB, free: 5.598 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.3159, allocations: 1.376 MB / 0.8729 GB, free: 4.219 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0005545/0.3165, allocations: 346.4 kB / 0.8732 GB, free: 3.879 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.3181, allocations: 0.837 MB / 0.874 GB, free: 3.031 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.004426/0.3225, allocations: 2.659 MB / 0.8766 GB, free: 372 kB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3225, allocations: 0 / 0.8766 GB, free: 372 kB / 0.6856 GB Notification: Performance of FrontEnd: time 1.814e-06/0.3225, allocations: 0 / 0.8766 GB, free: 372 kB / 0.6856 GB Notification: Performance of Transformations before backend: time 8.852e-05/0.3226, allocations: 0 / 0.8766 GB, free: 372 kB / 0.6856 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.004079/0.3267, allocations: 1.902 MB / 0.8785 GB, free: 14.4 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3268, allocations: 12.03 kB / 0.8785 GB, free: 14.39 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002809/0.3271, allocations: 143.9 kB / 0.8786 GB, free: 14.24 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003715/0.3308, allocations: 0.6423 MB / 0.8793 GB, free: 13.59 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00254/0.3333, allocations: 1.389 MB / 0.8806 GB, free: 12.15 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.3335, allocations: 145.4 kB / 0.8808 GB, free: 12 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.3337, allocations: 107.9 kB / 0.8809 GB, free: 11.89 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003045/0.3368, allocations: 1.346 MB / 0.8822 GB, free: 10.51 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/0.3368, allocations: 4 kB / 0.8822 GB, free: 10.51 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/0.3369, allocations: 36 kB / 0.8822 GB, free: 10.47 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.325e-05/0.337, allocations: 27.94 kB / 0.8823 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003795/0.3408, allocations: 1.39 MB / 0.8836 GB, free: 9.055 MB / 0.7012 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.007113/0.3479, allocations: 5.402 MB / 0.8889 GB, free: 3.305 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002523/0.3504, allocations: 1.087 MB / 0.8899 GB, free: 2.176 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.3521, allocations: 0.6232 MB / 0.8906 GB, free: 1.547 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008214/0.3529, allocations: 1.24 MB / 0.8918 GB, free: 32 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001838/0.3548, allocations: 0.7018 MB / 0.8925 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=69): time 2.324e-06/0.3548, allocations: 0 / 0.8925 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69): time 0.005114/0.3599, allocations: 1.801 MB / 0.8942 GB, free: 13.51 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.36, allocations: 59.97 kB / 0.8943 GB, free: 13.44 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/0.3617, allocations: 1.32 MB / 0.8956 GB, free: 12.11 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.948e-05/0.3618, allocations: 41.7 kB / 0.8956 GB, free: 12.07 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005631/0.3624, allocations: 0.67 MB / 0.8963 GB, free: 11.39 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.3626, allocations: 236.6 kB / 0.8965 GB, free: 11.15 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3627, allocations: 65.69 kB / 0.8965 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3628, allocations: 334 kB / 0.8969 GB, free: 10.75 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.3645, allocations: 0.5602 MB / 0.8974 GB, free: 10.19 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.3662, allocations: 0.7782 MB / 0.8982 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003183/0.3694, allocations: 1.214 MB / 0.8994 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.3694, allocations: 0 / 0.8994 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003842/0.3733, allocations: 1.477 MB / 0.9008 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.3734, allocations: 218.4 kB / 0.901 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.3734, allocations: 0 / 0.901 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.3735, allocations: 12 kB / 0.901 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.3748, allocations: 263.7 kB / 0.9013 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.246e-05/0.3748, allocations: 11.94 kB / 0.9013 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.3764, allocations: 243 kB / 0.9015 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.455e-05/0.3765, allocations: 39.98 kB / 0.9015 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/0.3766, allocations: 4 kB / 0.9015 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003499/0.3801, allocations: 1.314 MB / 0.9028 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3801, allocations: 4.031 kB / 0.9028 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.747e-06/0.3801, allocations: 8 kB / 0.9028 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.3813, allocations: 271.6 kB / 0.9031 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.3813, allocations: 15.92 kB / 0.9031 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.3829, allocations: 243 kB / 0.9033 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-05/0.383, allocations: 35.92 kB / 0.9034 GB, free: 3.871 MB / 0.7169 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.0006898/0.3837, allocations: 420.8 kB / 0.9038 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.384, allocations: 146.2 kB / 0.9039 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004234/0.3882, allocations: 1.54 MB / 0.9054 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.3882, allocations: 11.94 kB / 0.9054 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3883, allocations: 0 / 0.9054 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00332/0.3916, allocations: 1.3 MB / 0.9067 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006578/0.3982, allocations: 3.281 MB / 0.9099 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.3982, allocations: 4.562 kB / 0.9099 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.3994, allocations: 235.7 kB / 0.9101 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.3994, allocations: 4 kB / 0.9101 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-05/0.3995, allocations: 39.91 kB / 0.9102 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/0.3995, allocations: 12 kB / 0.9102 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.3995, allocations: 7.938 kB / 0.9102 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005492/0.405, allocations: 2.333 MB / 0.9125 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000666/0.4057, allocations: 378.8 kB / 0.9128 GB, free: 9.859 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.4059, allocations: 19.94 kB / 0.9129 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.4075, allocations: 187.7 kB / 0.913 GB, free: 9.656 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.4076, allocations: 68.34 kB / 0.9131 GB, free: 9.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.083e-05/0.4077, allocations: 43.97 kB / 0.9131 GB, free: 9.547 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001346/0.4091, allocations: 0.9332 MB / 0.9141 GB, free: 8.617 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4091, allocations: 0 / 0.9141 GB, free: 8.617 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002142/0.4112, allocations: 0.7916 MB / 0.9148 GB, free: 7.824 MB / 0.7325 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.00672/0.418, allocations: 3.278 MB / 0.918 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005417/0.4234, allocations: 2.101 MB / 0.9201 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.4234, allocations: 4 kB / 0.9201 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001877/0.4253, allocations: 0.7186 MB / 0.9208 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004801/0.4301, allocations: 0.7765 MB / 0.9215 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3613/0.7914, allocations: 13.85 MB / 0.9351 GB, free: 127.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009071/0.7923, allocations: 1.245 MB / 0.9363 GB, free: 127 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002089/0.7944, allocations: 371.1 kB / 0.9366 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008248/0.7953, allocations: 0.5941 MB / 0.9372 GB, free: 126.5 MB / 0.7325 GB Notification: Performance of SimCode: time 1.132e-06/0.7953, allocations: 0 / 0.9372 GB, free: 126.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7398/1.535, allocations: 43.59 MB / 0.9798 GB, free: 101.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/1.535, allocations: 251.4 kB / 0.98 GB, free: 101 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.199/4.734, allocations: 0 / 0.98 GB, free: 101 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)