Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.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.SpeedShift,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",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.001074/0.001074, allocations: 105.4 kB / 15.7 MB, free: 28 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.001061/0.001061, allocations: 195.3 kB / 16.64 MB, free: 6.48 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.311/1.311, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.687/1.687, 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.001566/0.001566, allocations: 70.95 kB / 0.6718 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2317, allocations: 114.5 MB / 0.7837 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift): time 0.003608/0.2353, allocations: 1.991 MB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003273/0.2386, allocations: 2.536 MB / 0.7881 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.2388, allocations: 0 / 0.7881 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.24, allocations: 482.1 kB / 0.7885 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001268/0.2401, allocations: 63.61 kB / 0.7886 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000853/0.241, allocations: 277.7 kB / 0.7889 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004045/0.2414, allocations: 306.5 kB / 0.7891 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.2416, allocations: 92.7 kB / 0.7892 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.2417, allocations: 103.5 kB / 0.7893 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.2419, allocations: 119.3 kB / 0.7895 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.242, allocations: 8 kB / 0.7895 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004925/0.2425, allocations: 327.5 kB / 0.7898 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.2426, allocations: 103.5 kB / 0.7899 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.2428, allocations: 202.6 kB / 0.7901 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007858/0.2436, allocations: 0.7826 MB / 0.7908 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.2436, allocations: 4 kB / 0.7908 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2436, allocations: 0 / 0.7908 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.113e-05/0.2436, allocations: 4 kB / 0.7908 GB, free: 5.832 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0009975/0.2446, allocations: 0.8255 MB / 0.7916 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.2447, allocations: 8.031 kB / 0.7916 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.77e-05/0.2447, allocations: 46.73 kB / 0.7917 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.801e-05/0.2448, allocations: 68.12 kB / 0.7918 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004677/0.2453, allocations: 372.3 kB / 0.7921 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.2453, allocations: 4.375 kB / 0.7921 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.2454, allocations: 11.94 kB / 0.7921 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.2456, allocations: 129 kB / 0.7923 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.2456, allocations: 0 / 0.7923 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.2456, allocations: 4 kB / 0.7923 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.2456, allocations: 0 / 0.7923 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001579/0.2458, allocations: 99.94 kB / 0.7924 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007386/0.2465, allocations: 0.5394 MB / 0.7929 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.2467, allocations: 114.4 kB / 0.793 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.564e-05/0.2468, allocations: 64.97 kB / 0.793 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.147e-05/0.2469, allocations: 7.984 kB / 0.7931 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.2471, allocations: 129.1 kB / 0.7932 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.2471, allocations: 0 / 0.7932 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004813/0.2476, allocations: 310.5 kB / 0.7935 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.2477, allocations: 85.11 kB / 0.7936 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008367/0.2485, allocations: 0.7658 MB / 0.7943 GB, free: 2.051 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.2485, allocations: 25.7 kB / 0.7943 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002302/0.2488, allocations: 272.3 kB / 0.7946 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.232e-05/0.2488, allocations: 27.64 kB / 0.7946 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.177e-05/0.2489, allocations: 21.72 kB / 0.7946 GB, free: 1.695 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.249, allocations: 322 kB / 0.7949 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.387e-05/0.2491, allocations: 39.98 kB / 0.795 GB, free: 1.336 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.822e-05/0.2492, allocations: 47.97 kB / 0.795 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.2493, allocations: 164.2 kB / 0.7952 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2494, allocations: 0 / 0.7952 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003097/0.2497, allocations: 262.5 kB / 0.7954 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.2497, allocations: 37.7 kB / 0.7955 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.2497, allocations: 0 / 0.7955 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.2498, allocations: 0 / 0.7955 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.541e-05/0.2498, allocations: 15.98 kB / 0.7955 GB, free: 0.7852 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.2499, allocations: 64 / 0.7955 GB, free: 0.7852 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.25, allocations: 15.84 kB / 0.7955 GB, free: 0.7695 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.25, allocations: 4 kB / 0.7955 GB, free: 0.7656 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (booleanToInteger.y,greaterThreshold.y,speRat.nextEventScaled,speRat.nextEvent,$PRE.speRat.nextEvent,speRat.last,speRat.b,speRat.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0003216/0.2503, allocations: 344.2 kB / 0.7958 GB, free: 424 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.549e-05/0.2504, allocations: 59.25 kB / 0.7959 GB, free: 364 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004196/0.2508, allocations: 292.6 kB / 0.7962 GB, free: 56 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2508, allocations: 4 kB / 0.7962 GB, free: 52 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2508, allocations: 4 kB / 0.7962 GB, free: 48 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2509, allocations: 0 / 0.7962 GB, free: 48 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003725/0.2512, allocations: 381.2 kB / 0.7965 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2512, allocations: 0 / 0.7965 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-05/0.2513, allocations: 4 kB / 0.7965 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2513, allocations: 4 kB / 0.7965 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.2513, allocations: 0 / 0.7965 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2513, allocations: 0 / 0.7965 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2513, allocations: 4 kB / 0.7965 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003627/0.2517, allocations: 310.3 kB / 0.7968 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.2518, allocations: 148.3 kB / 0.797 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.885e-05/0.2519, allocations: 4 kB / 0.797 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.558e-05/0.252, allocations: 4 kB / 0.797 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.252, allocations: 7.984 kB / 0.797 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.2521, allocations: 8 kB / 0.797 GB, free: 15.1 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005914/0.2527, allocations: 0.5614 MB / 0.7976 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2527, allocations: 0 / 0.7976 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003885/0.2531, allocations: 124 kB / 0.7977 GB, free: 14.42 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: 8 ($whenCondition1,speRat.a,speRat.b,speRat.last,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.000898/0.254, allocations: 0.9334 MB / 0.7986 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0002896/0.2543, allocations: 215.4 kB / 0.7988 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2543, allocations: 0 / 0.7988 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.2544, allocations: 147.4 kB / 0.7989 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.2549, allocations: 104.5 kB / 0.799 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/0.26, allocations: 4.502 MB / 0.8034 GB, free: 8.371 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/0.2606, allocations: 0.9699 MB / 0.8044 GB, free: 7.375 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001021/0.2607, allocations: 25.48 kB / 0.8044 GB, free: 7.344 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.2609, allocations: 147.4 kB / 0.8045 GB, free: 7.199 MB / 0.6231 GB Notification: Performance of SimCode: time 8.01e-07/0.2609, allocations: 7.938 kB / 0.8045 GB, free: 7.191 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.2906, allocations: 11.18 MB / 0.8155 GB, free: 12.27 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.305/8.596, allocations: 14.61 kB / 0.8155 GB, free: 12.26 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1)