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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001325/0.001325, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001465/0.001465, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.886/1.886, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.132/3.132, allocations: 461.9 MB / 0.7343 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 63.02 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3281, allocations: 157.4 MB / 1.052 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.00504/0.3332, allocations: 2.107 MB / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004936/0.3381, allocations: 2.569 MB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.3384, allocations: 7.938 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002025/0.3404, allocations: 0.506 MB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.3407, allocations: 59.72 kB / 1.058 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.342, allocations: 250.5 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006379/0.3426, allocations: 358.3 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.3429, allocations: 93.06 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.3431, allocations: 103.5 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002602/0.3433, allocations: 143.2 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.4e-05/0.3434, allocations: 8 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006912/0.3441, allocations: 323.5 kB / 1.059 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.3443, allocations: 107.5 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002708/0.3446, allocations: 210.5 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.3459, allocations: 0.8099 MB / 1.06 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3459, allocations: 4 kB / 1.06 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of FrontEnd: time 5.721e-06/0.3459, allocations: 0 / 1.06 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.194e-05/0.3459, allocations: 3.938 kB / 1.06 GB, free: 0.9883 MB / 0.8106 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.001671/0.3476, allocations: 0.8681 MB / 1.061 GB, free: 64 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.801e-05/0.3477, allocations: 12.62 kB / 1.061 GB, free: 52 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.059e-05/0.3478, allocations: 42.73 kB / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.348, allocations: 64.27 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007612/0.3487, allocations: 396.2 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.3488, allocations: 8.375 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.463e-05/0.3488, allocations: 8.375 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/0.3492, allocations: 129.8 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3493, allocations: 4 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.3493, allocations: 0 / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.3493, allocations: 0 / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.3495, allocations: 99.94 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.3509, allocations: 0.547 MB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.3511, allocations: 110.5 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.3513, allocations: 61.17 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.876e-05/0.3513, allocations: 11.92 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003608/0.3517, allocations: 140.9 kB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 2.605e-06/0.3517, allocations: 0 / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0006473/0.3524, allocations: 314.4 kB / 1.063 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.3525, allocations: 81.14 kB / 1.063 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.3538, allocations: 0.7935 MB / 1.063 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.3538, allocations: 25.7 kB / 1.063 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/0.3542, allocations: 292.2 kB / 1.064 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.273e-05/0.3543, allocations: 27.64 kB / 1.064 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/0.3543, allocations: 25.72 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.3545, allocations: 310 kB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.3547, allocations: 47.98 kB / 1.064 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.3548, allocations: 51.97 kB / 1.064 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003252/0.3551, allocations: 152.2 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3551, allocations: 0 / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004881/0.3556, allocations: 274.4 kB / 1.065 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.142e-05/0.3557, allocations: 33.7 kB / 1.065 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.3557, allocations: 0 / 1.065 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.3557, allocations: 0 / 1.065 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.3558, allocations: 11.98 kB / 1.065 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.3559, allocations: 4.062 kB / 1.065 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.3561, allocations: 19.84 kB / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.3561, allocations: 4 kB / 1.065 GB, free: 11.79 MB / 0.8262 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.0004281/0.3565, allocations: 337.1 kB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3567, allocations: 71.09 kB / 1.065 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007072/0.3574, allocations: 297 kB / 1.065 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3574, allocations: 3.938 kB / 1.065 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3574, allocations: 0 / 1.065 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3574, allocations: 0 / 1.065 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.358, allocations: 389.4 kB / 1.066 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.358, allocations: 0 / 1.066 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.94e-05/0.3581, allocations: 8 kB / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3581, allocations: 0 / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.3581, allocations: 4 kB / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-05/0.3582, allocations: 8.109 kB / 1.066 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3582, allocations: 0 / 1.066 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006662/0.3588, allocations: 310.2 kB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001979/0.3591, allocations: 152.2 kB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.439e-05/0.3592, allocations: 11.94 kB / 1.066 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.3593, allocations: 7.938 kB / 1.066 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.3594, allocations: 3.984 kB / 1.066 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.3594, allocations: 8 kB / 1.066 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0009597/0.3604, allocations: 0.5848 MB / 1.067 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3604, allocations: 3.938 kB / 1.067 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005925/0.361, allocations: 127.9 kB / 1.067 GB, free: 9.375 MB / 0.8262 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.001365/0.3624, allocations: 0.9335 MB / 1.068 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004231/0.3628, allocations: 215.3 kB / 1.068 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3629, allocations: 0 / 1.068 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.3631, allocations: 139.4 kB / 1.068 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008628/0.3639, allocations: 124.2 kB / 1.068 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009077/0.373, allocations: 4.875 MB / 1.073 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007997/0.3739, allocations: 0.9821 MB / 1.074 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001629/0.374, allocations: 29.89 kB / 1.074 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/0.3743, allocations: 163.4 kB / 1.074 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of SimCode: time 7.21e-07/0.3744, allocations: 0 / 1.074 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8837/1.258, allocations: 11.78 MB / 1.086 GB, free: 6.234 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00033/1.258, allocations: 235.3 kB / 1.086 GB, free: 5.969 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.518/3.777, allocations: 0 / 1.086 GB, free: 5.969 MB / 0.8419 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/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)