Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.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.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",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.001551/0.001551, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 189.5 kB / 16.62 MB, free: 6.613 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.384/1.384, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.608/1.608, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001363/0.001363, allocations: 77.05 kB / 0.6718 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2075, allocations: 114.5 MB / 0.7836 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect): time 0.003419/0.211, allocations: 2.107 MB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002827/0.2138, allocations: 2.473 MB / 0.7881 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.214, allocations: 3.938 kB / 0.7881 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.2153, allocations: 0.498 MB / 0.7886 GB, free: 8.109 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.2156, allocations: 107.4 kB / 0.7887 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005723/0.2161, allocations: 206.9 kB / 0.7889 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004265/0.2166, allocations: 366.3 kB / 0.7893 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.2167, allocations: 56.73 kB / 0.7893 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.2169, allocations: 119.4 kB / 0.7894 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.2171, allocations: 143.2 kB / 0.7896 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.2171, allocations: 8 kB / 0.7896 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.2173, allocations: 71.89 kB / 0.7896 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.2174, allocations: 127.5 kB / 0.7898 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002111/0.2177, allocations: 218.5 kB / 0.79 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006361/0.2183, allocations: 0.6773 MB / 0.7906 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2183, allocations: 0 / 0.7906 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2183, allocations: 0 / 0.7906 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.054e-05/0.2183, allocations: 0 / 0.7906 GB, free: 6.031 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.001131/0.2195, allocations: 0.8718 MB / 0.7915 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2195, allocations: 16.02 kB / 0.7915 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.839e-05/0.2196, allocations: 30.75 kB / 0.7915 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.735e-05/0.2197, allocations: 72.09 kB / 0.7916 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/0.2202, allocations: 432 kB / 0.792 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.2202, allocations: 4 kB / 0.792 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.2202, allocations: 4 kB / 0.792 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.2204, allocations: 108.2 kB / 0.7921 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.2204, allocations: 0 / 0.7921 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.2205, allocations: 0 / 0.7921 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.2205, allocations: 0 / 0.7921 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.2206, allocations: 43.97 kB / 0.7922 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000704/0.2213, allocations: 0.516 MB / 0.7927 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003839/0.2217, allocations: 102.7 kB / 0.7928 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.374e-05/0.2218, allocations: 32.84 kB / 0.7928 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.2218, allocations: 8.016 kB / 0.7928 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000176/0.222, allocations: 79.38 kB / 0.7929 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 2.876e-06/0.222, allocations: 7.984 kB / 0.7929 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004034/0.2224, allocations: 192.8 kB / 0.7931 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.2225, allocations: 114.7 kB / 0.7932 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009512/0.2235, allocations: 0.8795 MB / 0.794 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.2235, allocations: 25.7 kB / 0.7941 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/0.2238, allocations: 304 kB / 0.7943 GB, free: 1.977 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.871e-05/0.2238, allocations: 31.58 kB / 0.7944 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.793e-05/0.2239, allocations: 33.64 kB / 0.7944 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.224, allocations: 310 kB / 0.7947 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.089e-05/0.2241, allocations: 27.98 kB / 0.7947 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.97e-05/0.2242, allocations: 72.27 kB / 0.7948 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.2243, allocations: 65.7 kB / 0.7949 GB, free: 1.414 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2243, allocations: 7.938 kB / 0.7949 GB, free: 1.406 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002543/0.2246, allocations: 160.9 kB / 0.795 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2246, allocations: 8.938 kB / 0.795 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2246, allocations: 0 / 0.795 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2246, allocations: 0 / 0.795 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.135e-05/0.2247, allocations: 19.88 kB / 0.795 GB, free: 1.215 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.2247, allocations: 0 / 0.795 GB, free: 1.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.2249, allocations: 15.89 kB / 0.7951 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.2249, allocations: 4 kB / 0.7951 GB, free: 1.195 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.sta.combiTimeTable.nextTimeEvent,$whenCondition1,sta.combiTimeTable.nextTimeEventScaled,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent,sta.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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.0002858/0.2252, allocations: 313.6 kB / 0.7954 GB, free: 0.8828 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.227e-05/0.2252, allocations: 67.28 kB / 0.7954 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.2254, allocations: 73.98 kB / 0.7955 GB, free: 0.7422 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2254, allocations: 3.938 kB / 0.7955 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2254, allocations: 0 / 0.7955 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2254, allocations: 4 kB / 0.7955 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003345/0.2257, allocations: 393.3 kB / 0.7959 GB, free: 308 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2257, allocations: 3.984 kB / 0.7959 GB, free: 304 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.547e-05/0.2258, allocations: 4 kB / 0.7959 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2258, allocations: 0 / 0.7959 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.2258, allocations: 4 kB / 0.7959 GB, free: 296 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2258, allocations: 3.938 kB / 0.7959 GB, free: 292 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2258, allocations: 4 kB / 0.7959 GB, free: 288 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000262/0.2261, allocations: 192.3 kB / 0.7961 GB, free: 76 kB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.2262, allocations: 136.2 kB / 0.7962 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.056e-05/0.2263, allocations: 4 kB / 0.7962 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.2264, allocations: 3.938 kB / 0.7962 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.2264, allocations: 11.98 kB / 0.7962 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.2265, allocations: 4 kB / 0.7962 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000698/0.2272, allocations: 0.6629 MB / 0.7969 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.663e-06/0.2272, allocations: 0 / 0.7969 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002904/0.2275, allocations: 59.94 kB / 0.7969 GB, free: 15.18 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,sta.y,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001447/0.2289, allocations: 1.057 MB / 0.798 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0002277/0.2292, allocations: 71.95 kB / 0.798 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2292, allocations: 0 / 0.798 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 9.321e-05/0.2293, allocations: 44.06 kB / 0.7981 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006004/0.2299, allocations: 149.1 kB / 0.7982 GB, free: 14 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005354/0.2353, allocations: 4.651 MB / 0.8028 GB, free: 9.242 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005548/0.2358, allocations: 0.9743 MB / 0.8037 GB, free: 8.242 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001656/0.236, allocations: 38.27 kB / 0.8038 GB, free: 8.207 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.2362, allocations: 179.3 kB / 0.8039 GB, free: 8.031 MB / 0.6231 GB Notification: Performance of SimCode: time 9.32e-07/0.2363, allocations: 4 kB / 0.8039 GB, free: 8.027 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03015/0.2664, allocations: 12.33 MB / 0.816 GB, free: 12 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.718/8.985, allocations: 12 kB / 0.816 GB, free: 11.99 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe 2>&1)