Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.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.BaseClasses.Examples.CapacityAirSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource",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.00147/0.00147, 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.001886/0.001886, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.481/1.481, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.413/3.413, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 62.78 kB / 0.8987 GB, free: 37.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3209, allocations: 157.4 MB / 1.052 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.004383/0.3254, allocations: 2.195 MB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003317/0.3287, allocations: 1.838 MB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002362/0.329, allocations: 0 / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008798/0.3299, allocations: 219.2 kB / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002067/0.3301, allocations: 55.48 kB / 1.057 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.3314, allocations: 392.4 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006144/0.332, allocations: 406.8 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.3323, allocations: 40.38 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.3326, allocations: 159.5 kB / 1.058 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.3329, allocations: 167.3 kB / 1.058 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.818e-05/0.333, allocations: 24 kB / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005447/0.3335, allocations: 235.7 kB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.3337, allocations: 123.7 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002123/0.334, allocations: 167.2 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0009084/0.3349, allocations: 0.5959 MB / 1.059 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3349, allocations: 0 / 1.059 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3349, allocations: 0 / 1.059 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.692e-05/0.3349, allocations: 0 / 1.059 GB, free: 2.062 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001581/0.3365, allocations: 0.6983 MB / 1.06 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.3366, allocations: 12.62 kB / 1.06 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.3367, allocations: 42.73 kB / 1.06 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00186/0.3386, allocations: 164.3 kB / 1.06 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006104/0.3392, allocations: 362.3 kB / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.3394, allocations: 75.95 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.3394, allocations: 12.31 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.3405, allocations: 442.9 kB / 1.061 GB, free: 164 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.3406, allocations: 0 / 1.061 GB, free: 164 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/0.3406, allocations: 4 kB / 1.061 GB, free: 160 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3406, allocations: 4 kB / 1.061 GB, free: 156 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.3423, allocations: 0.5855 MB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/0.3446, allocations: 1.035 MB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00543/0.35, allocations: 0.8533 MB / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008695/0.351, allocations: 304.7 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.351, allocations: 8.25 kB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.3522, allocations: 445.2 kB / 1.064 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 3.626e-06/0.3522, allocations: 0 / 1.064 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002922/0.3551, allocations: 0.9226 MB / 1.065 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.3552, allocations: 51.41 kB / 1.065 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/0.3558, allocations: 437.5 kB / 1.065 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.3559, allocations: 33.7 kB / 1.065 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.3561, allocations: 172.1 kB / 1.065 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.925e-05/0.3562, allocations: 47.34 kB / 1.065 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.3563, allocations: 53.67 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001691/0.3565, allocations: 350.8 kB / 1.066 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009511/0.3575, allocations: 392.5 kB / 1.066 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008905/0.3584, allocations: 371.7 kB / 1.066 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.36, allocations: 0.5984 MB / 1.067 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.36, allocations: 0 / 1.067 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002062/0.3621, allocations: 0.8968 MB / 1.068 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.929e-05/0.3622, allocations: 49.69 kB / 1.068 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3622, allocations: 0 / 1.068 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3622, allocations: 3.938 kB / 1.068 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004893/0.3627, allocations: 59.92 kB / 1.068 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3627, allocations: 3.938 kB / 1.068 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/0.3632, allocations: 55.81 kB / 1.068 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.097e-05/0.3632, allocations: 7.984 kB / 1.068 GB, free: 8.32 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: 7 (cooCap.checkBoundsTCon[1],$PRE.cooCap.checkBoundsTCon[1],cooCap.checkBoundsTEva[1],$PRE.cooCap.checkBoundsTEva[1],cooCap.stage,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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.0002763/0.3635, allocations: 185.8 kB / 1.068 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.3636, allocations: 39.53 kB / 1.068 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.3638, allocations: 43.47 kB / 1.068 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3638, allocations: 0 / 1.068 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3638, allocations: 4 kB / 1.068 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3638, allocations: 3.938 kB / 1.068 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006501/0.3644, allocations: 0.54 MB / 1.069 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3645, allocations: 0 / 1.069 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/0.3649, allocations: 63.86 kB / 1.069 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.365, allocations: 4 kB / 1.069 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.365, allocations: 7.984 kB / 1.069 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.365, allocations: 4 kB / 1.069 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.365, allocations: 0 / 1.069 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.3668, allocations: 0.6625 MB / 1.07 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002199/0.367, allocations: 164.6 kB / 1.07 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.038e-05/0.3671, allocations: 4 kB / 1.07 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004678/0.3676, allocations: 51.88 kB / 1.07 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.222e-05/0.3676, allocations: 19.97 kB / 1.07 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.863e-05/0.3677, allocations: 19.92 kB / 1.07 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003999/0.3681, allocations: 319.1 kB / 1.07 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3681, allocations: 0 / 1.07 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000409/0.3685, allocations: 76 kB / 1.07 GB, free: 6.031 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: 5 ($whenCondition2,$whenCondition1,cooCap.stage,cooCap.checkBoundsTEva[1],cooCap.checkBoundsTCon[1]) * Number of discrete states: 3 (cooCap.stage,cooCap.checkBoundsTEva[cooCap.stage],cooCap.checkBoundsTCon[cooCap.stage]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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.002315/0.3708, allocations: 1.229 MB / 1.071 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001871/0.3727, allocations: 0.7805 MB / 1.072 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3727, allocations: 0 / 1.072 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008317/0.3736, allocations: 331.7 kB / 1.072 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005138/0.3741, allocations: 73.38 kB / 1.073 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/0.3852, allocations: 6.191 MB / 1.079 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.3857, allocations: 0.8103 MB / 1.079 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004839/0.3862, allocations: 102.2 kB / 1.079 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.3864, allocations: 99.38 kB / 1.08 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of SimCode: time 6.82e-07/0.3865, allocations: 0 / 1.08 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02909/0.4155, allocations: 10.43 MB / 1.09 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003907/0.416, allocations: 222 kB / 1.09 GB, free: 1.84 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.59/3.006, allocations: 3.125 kB / 1.09 GB, free: 1.84 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource.fmu > Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe 2>&1)