Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_10_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.001071/0.001071, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001135/0.001135, allocations: 190.9 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.336/2.336, allocations: 437 MB / 0.7101 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 75.88 kB / 0.8689 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5251/0.5263, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003031/0.5294, allocations: 2.11 MB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002847/0.5322, allocations: 2.566 MB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.343e-05/0.5323, allocations: 4 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.5334, allocations: 0.5157 MB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.5335, allocations: 55.67 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006168/0.5342, allocations: 247.6 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003945/0.5346, allocations: 365.8 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.5347, allocations: 97.06 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.712e-05/0.5348, allocations: 99.47 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.535, allocations: 147.2 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.471e-05/0.535, allocations: 8 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003964/0.5354, allocations: 319.5 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.5356, allocations: 111.5 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.5357, allocations: 210.5 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006939/0.5364, allocations: 0.806 MB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.5364, allocations: 4 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.233e-06/0.5365, allocations: 0 / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.5365, allocations: 0 / 1.024 GB, free: 11.03 MB / 0.7794 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.0009004/0.5374, allocations: 0.8682 MB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.5374, allocations: 16.02 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.455e-05/0.5375, allocations: 38.75 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.845e-05/0.5375, allocations: 60.19 kB / 1.025 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.5379, allocations: 404 kB / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.5379, allocations: 8.375 kB / 1.026 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.5379, allocations: 8.375 kB / 1.026 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.5381, allocations: 125.8 kB / 1.026 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.5382, allocations: 4 kB / 1.026 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.5382, allocations: 4 kB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.5382, allocations: 0 / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.5383, allocations: 103.9 kB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006414/0.539, allocations: 0.5509 MB / 1.027 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.5392, allocations: 102.5 kB / 1.027 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.924e-05/0.5392, allocations: 65.16 kB / 1.027 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.5393, allocations: 7.938 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.5395, allocations: 129.1 kB / 1.027 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.502e-06/0.5395, allocations: 0 / 1.027 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004305/0.5399, allocations: 314.5 kB / 1.027 GB, free: 8.047 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.54, allocations: 85.09 kB / 1.027 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008014/0.5408, allocations: 0.7935 MB / 1.028 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.5408, allocations: 25.7 kB / 1.028 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/0.5411, allocations: 284.3 kB / 1.028 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/0.5411, allocations: 31.56 kB / 1.028 GB, free: 6.801 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/0.5412, allocations: 29.7 kB / 1.028 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.807e-05/0.5413, allocations: 306 kB / 1.029 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.949e-05/0.5413, allocations: 51.97 kB / 1.029 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.029e-05/0.5414, allocations: 51.97 kB / 1.029 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.5416, allocations: 156.2 kB / 1.029 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5416, allocations: 0 / 1.029 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002886/0.5419, allocations: 274.5 kB / 1.029 GB, free: 5.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.899e-05/0.5419, allocations: 37.69 kB / 1.029 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.5419, allocations: 0 / 1.029 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.606e-06/0.5419, allocations: 0 / 1.029 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.171e-05/0.542, allocations: 8 kB / 1.029 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.542, allocations: 64 / 1.029 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.5421, allocations: 15.91 kB / 1.029 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.5422, allocations: 11.98 kB / 1.029 GB, free: 5.832 MB / 0.7794 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.0002869/0.5425, allocations: 338.1 kB / 1.029 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-05/0.5425, allocations: 71.17 kB / 1.03 GB, free: 5.418 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003952/0.5429, allocations: 300.9 kB / 1.03 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.5429, allocations: 0 / 1.03 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.543, allocations: 0 / 1.03 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.543, allocations: 0 / 1.03 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003263/0.5433, allocations: 389.3 kB / 1.03 GB, free: 4.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5433, allocations: 0 / 1.03 GB, free: 4.676 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.696e-05/0.5433, allocations: 11.98 kB / 1.03 GB, free: 4.664 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5433, allocations: 0 / 1.03 GB, free: 4.664 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.5434, allocations: 4 kB / 1.03 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5434, allocations: 0 / 1.03 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5434, allocations: 0 / 1.03 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.5437, allocations: 318.2 kB / 1.031 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.5438, allocations: 140.3 kB / 1.031 GB, free: 4.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.186e-05/0.5439, allocations: 12 kB / 1.031 GB, free: 4.156 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.544, allocations: 7.984 kB / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.014e-05/0.5441, allocations: 0 / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.5441, allocations: 4 kB / 1.031 GB, free: 4.145 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005978/0.5447, allocations: 0.5926 MB / 1.031 GB, free: 3.555 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5447, allocations: 0 / 1.031 GB, free: 3.555 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003351/0.545, allocations: 123.9 kB / 1.031 GB, free: 3.434 MB / 0.7794 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.0008042/0.5458, allocations: 0.9413 MB / 1.032 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002621/0.5461, allocations: 203.3 kB / 1.033 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.5461, allocations: 0 / 1.033 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.5463, allocations: 147.3 kB / 1.033 GB, free: 2.086 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.5468, allocations: 132.6 kB / 1.033 GB, free: 1.965 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005053/0.5518, allocations: 4.871 MB / 1.038 GB, free: 13 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.5524, allocations: 0.9782 MB / 1.038 GB, free: 11.99 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 8.417e-05/0.5525, allocations: 29.88 kB / 1.039 GB, free: 11.96 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.5527, allocations: 171.4 kB / 1.039 GB, free: 11.8 MB / 0.795 GB Notification: Performance of SimCode: time 1.472e-06/0.5527, allocations: 4 kB / 1.039 GB, free: 11.79 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.195/1.748, allocations: 11.78 MB / 1.05 GB, free: 292 kB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003026/1.748, allocations: 216.9 kB / 1.05 GB, free: 32 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.471/4.219, allocations: 2.812 kB / 1.05 GB, free: 32 kB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.fmu > Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1)