Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_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.001604/0.001604, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001672/0.001673, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.389/2.389, allocations: 223.2 MB / 239.9 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.256/4.256, allocations: 409.2 MB / 0.6838 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005962/0.0005963, allocations: 8 kB / 0.8375 GB, free: 6.508 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.473/1.474, allocations: 146.8 MB / 0.9809 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.004466/1.478, allocations: 1.673 MB / 0.9825 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005317/1.484, allocations: 2.261 MB / 0.9847 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000327/1.484, allocations: 0 / 0.9847 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.002584/1.487, allocations: 0.5218 MB / 0.9852 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002665/1.487, allocations: 67.86 kB / 0.9853 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001161/1.488, allocations: 198.2 kB / 0.9855 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0006103/1.489, allocations: 263.4 kB / 0.9857 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002872/1.489, allocations: 100.9 kB / 0.9858 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/1.489, allocations: 103.5 kB / 0.9859 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/1.489, allocations: 127.4 kB / 0.9861 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/1.489, allocations: 4 kB / 0.9861 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006654/1.49, allocations: 263.6 kB / 0.9863 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001581/1.49, allocations: 99.59 kB / 0.9864 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001735/1.49, allocations: 121.4 kB / 0.9865 GB, free: 468 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009136/1.491, allocations: 0.6102 MB / 0.9871 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/1.491, allocations: 4 kB / 0.9871 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.144e-06/1.491, allocations: 0 / 0.9871 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 8.225e-06/1.491, allocations: 0 / 0.9871 GB, free: 15.84 MB / 0.7481 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.00152/1.493, allocations: 0.814 MB / 0.9879 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 6.631e-05/1.493, allocations: 8.031 kB / 0.9879 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.153e-05/1.493, allocations: 38.56 kB / 0.988 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002405/1.493, allocations: 63.25 kB / 0.988 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006518/1.494, allocations: 355.7 kB / 0.9884 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/1.494, allocations: 8 kB / 0.9884 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/1.494, allocations: 4 kB / 0.9884 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003924/1.494, allocations: 134.1 kB / 0.9885 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/1.495, allocations: 0 / 0.9885 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/1.495, allocations: 8 kB / 0.9885 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/1.495, allocations: 0 / 0.9885 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/1.495, allocations: 100 kB / 0.9886 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/1.496, allocations: 0.5436 MB / 0.9891 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/1.496, allocations: 106.5 kB / 0.9892 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 6.299e-05/1.496, allocations: 8.062 kB / 0.9892 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003583/1.497, allocations: 141.1 kB / 0.9894 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.485e-06/1.497, allocations: 0 / 0.9894 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.0008891/1.498, allocations: 383.9 kB / 0.9897 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/1.498, allocations: 89.05 kB / 0.9898 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/1.5, allocations: 0.7934 MB / 0.9906 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/1.5, allocations: 25.7 kB / 0.9906 GB, free: 12 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003841/1.5, allocations: 292.2 kB / 0.9909 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/1.5, allocations: 27.64 kB / 0.9909 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-06/1.5, allocations: 0 / 0.9909 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000192/1.5, allocations: 314 kB / 0.9912 GB, free: 11.37 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/1.501, allocations: 47.92 kB / 0.9913 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/1.501, allocations: 55.83 kB / 0.9913 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/1.501, allocations: 73.69 kB / 0.9914 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/1.501, allocations: 4 kB / 0.9914 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0006598/1.501, allocations: 266.5 kB / 0.9917 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.354e-05/1.502, allocations: 37.69 kB / 0.9917 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/1.502, allocations: 0 / 0.9917 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/1.502, allocations: 0 / 0.9917 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/1.502, allocations: 8 kB / 0.9917 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/1.502, allocations: 0 / 0.9917 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/1.502, allocations: 15.92 kB / 0.9917 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.79e-05/1.502, allocations: 4 kB / 0.9917 GB, free: 10.84 MB / 0.7481 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 ($whenCondition1,speRat.a,speRat.b,speRat.last,$PRE.speRat.nextEvent,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005588/1.503, allocations: 348.5 kB / 0.9921 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.424e-05/1.503, allocations: 67.16 kB / 0.9921 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000638/1.503, allocations: 293 kB / 0.9924 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/1.503, allocations: 0 / 0.9924 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/1.503, allocations: 0 / 0.9924 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/1.503, allocations: 0 / 0.9924 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007038/1.504, allocations: 385.2 kB / 0.9928 GB, free: 9.691 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/1.504, allocations: 0 / 0.9928 GB, free: 9.691 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.383e-05/1.504, allocations: 15.98 kB / 0.9928 GB, free: 9.676 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/1.504, allocations: 0 / 0.9928 GB, free: 9.676 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/1.504, allocations: 8 kB / 0.9928 GB, free: 9.668 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.504, allocations: 3.938 kB / 0.9928 GB, free: 9.664 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/1.504, allocations: 0 / 0.9928 GB, free: 9.664 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007002/1.505, allocations: 313.8 kB / 0.9931 GB, free: 9.332 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/1.505, allocations: 136.3 kB / 0.9932 GB, free: 9.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.113e-05/1.505, allocations: 4 kB / 0.9932 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/1.506, allocations: 15.98 kB / 0.9932 GB, free: 9.16 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/1.506, allocations: 4 kB / 0.9932 GB, free: 9.156 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/1.506, allocations: 15.91 kB / 0.9933 GB, free: 9.141 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001153/1.507, allocations: 0.5809 MB / 0.9938 GB, free: 8.562 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.2e-07/1.507, allocations: 0 / 0.9938 GB, free: 8.562 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000678/1.508, allocations: 124 kB / 0.9939 GB, free: 8.441 MB / 0.7481 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 (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.001479/1.509, allocations: 0.9344 MB / 0.9949 GB, free: 7.469 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005561/1.51, allocations: 207.2 kB / 0.9951 GB, free: 7.254 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.51, allocations: 0 / 0.9951 GB, free: 7.254 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002135/1.51, allocations: 147.3 kB / 0.9952 GB, free: 7.098 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007888/1.511, allocations: 119.2 kB / 0.9953 GB, free: 6.984 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007926/1.519, allocations: 3.462 MB / 0.9987 GB, free: 3.461 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009569/1.52, allocations: 0.9862 MB / 0.9996 GB, free: 2.449 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002161/1.52, allocations: 33.94 kB / 0.9997 GB, free: 2.414 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002957/1.52, allocations: 163.4 kB / 0.9998 GB, free: 2.254 MB / 0.7481 GB Notification: Performance of SimCode: time 3.636e-06/1.52, allocations: 0 / 0.9998 GB, free: 2.254 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04477/1.565, allocations: 11.32 MB / 1.011 GB, free: 7.223 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003595/1.565, allocations: 206.9 kB / 1.011 GB, free: 6.98 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.272/4.837, allocations: 0 / 1.011 GB, free: 6.98 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.fmu > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) Environment - environmentSimulation: