Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.BaseClasses.Examples.CapacityAirSource,fileNamePrefix="Buildings_10_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource,fileNamePrefix="Buildings_10_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.001537/0.001537, allocations: 108 kB / 15.6 MB, free: 132 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.00109/0.00109, allocations: 196 kB / 16.54 MB, free: 6.672 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.411/2.411, allocations: 437.1 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002166/0.002166, allocations: 71.89 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5198/0.522, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.003006/0.525, allocations: 2.138 MB / 1.02 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002357/0.5274, allocations: 1.847 MB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.942e-05/0.5275, allocations: 11.94 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005996/0.5281, allocations: 221 kB / 1.022 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.5282, allocations: 63.36 kB / 1.022 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009081/0.5291, allocations: 419.6 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.5295, allocations: 398.8 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.5296, allocations: 44.31 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.5298, allocations: 163.5 kB / 1.023 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.53, allocations: 155.4 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.963e-05/0.5301, allocations: 32 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004124/0.5305, allocations: 239.7 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.5306, allocations: 119.7 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.5308, allocations: 163.2 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005214/0.5313, allocations: 0.5804 MB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.5313, allocations: 0 / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5313, allocations: 0 / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.5313, allocations: 0 / 1.024 GB, free: 11.89 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001029/0.5324, allocations: 0.71 MB / 1.025 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.5324, allocations: 12.03 kB / 1.025 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.042e-05/0.5325, allocations: 46.62 kB / 1.025 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00171/0.5342, allocations: 164.4 kB / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000409/0.5346, allocations: 362.2 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.703e-05/0.5347, allocations: 75.94 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.579e-05/0.5348, allocations: 4.375 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009996/0.5358, allocations: 437.2 kB / 1.026 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.5358, allocations: 0 / 1.026 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.5358, allocations: 11.94 kB / 1.026 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.5358, allocations: 0 / 1.026 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.5374, allocations: 0.5816 MB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.5391, allocations: 1.043 MB / 1.027 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005118/0.5442, allocations: 0.8567 MB / 1.028 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007567/0.545, allocations: 308.6 kB / 1.028 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.5451, allocations: 11.98 kB / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009499/0.546, allocations: 435 kB / 1.029 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.753e-06/0.546, allocations: 4 kB / 1.029 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.00243/0.5485, allocations: 0.9168 MB / 1.03 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.5485, allocations: 59.39 kB / 1.03 GB, free: 5.684 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004058/0.5489, allocations: 429.6 kB / 1.03 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.627e-05/0.549, allocations: 33.7 kB / 1.03 GB, free: 5.219 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.5491, allocations: 176 kB / 1.03 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.806e-05/0.5492, allocations: 47.3 kB / 1.03 GB, free: 4.996 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.5493, allocations: 57.67 kB / 1.03 GB, free: 4.934 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.5494, allocations: 346.7 kB / 1.031 GB, free: 4.586 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008782/0.5503, allocations: 380.6 kB / 1.031 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008478/0.5512, allocations: 373.3 kB / 1.031 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.5527, allocations: 0.5972 MB / 1.032 GB, free: 3.242 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.5527, allocations: 0 / 1.032 GB, free: 3.242 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002025/0.5547, allocations: 0.9006 MB / 1.033 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.5548, allocations: 47.56 kB / 1.033 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5548, allocations: 3.984 kB / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.5548, allocations: 3.938 kB / 1.033 GB, free: 2.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004872/0.5553, allocations: 67.91 kB / 1.033 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.5553, allocations: 0 / 1.033 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004053/0.5557, allocations: 43.89 kB / 1.033 GB, free: 2.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.5558, allocations: 11.98 kB / 1.033 GB, free: 2.148 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: 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.0002124/0.556, allocations: 193.7 kB / 1.033 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.845e-05/0.5561, allocations: 31.62 kB / 1.033 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.427e-05/0.5561, allocations: 43.47 kB / 1.033 GB, free: 1.875 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.5561, allocations: 4 kB / 1.033 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.5561, allocations: 0 / 1.033 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.5562, allocations: 7.922 kB / 1.033 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005105/0.5567, allocations: 0.5476 MB / 1.034 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5567, allocations: 0 / 1.034 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/0.5572, allocations: 67.91 kB / 1.034 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.5572, allocations: 0 / 1.034 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.5572, allocations: 11.98 kB / 1.034 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5572, allocations: 0 / 1.034 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5572, allocations: 0 / 1.034 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.5589, allocations: 0.6603 MB / 1.035 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.5591, allocations: 160.6 kB / 1.035 GB, free: 340 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.549e-05/0.5592, allocations: 7.984 kB / 1.035 GB, free: 332 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004596/0.5596, allocations: 47.94 kB / 1.035 GB, free: 284 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.908e-05/0.5597, allocations: 15.98 kB / 1.035 GB, free: 268 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.5597, allocations: 19.92 kB / 1.035 GB, free: 248 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003212/0.5601, allocations: 315.1 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5601, allocations: 4 kB / 1.035 GB, free: 15.93 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000351/0.5604, allocations: 80.23 kB / 1.035 GB, free: 15.86 MB / 0.795 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.002061/0.5625, allocations: 1.234 MB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001854/0.5644, allocations: 0.78 MB / 1.037 GB, free: 13.8 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5644, allocations: 0 / 1.037 GB, free: 13.8 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0008267/0.5652, allocations: 328.5 kB / 1.037 GB, free: 13.48 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.5656, allocations: 90.73 kB / 1.038 GB, free: 13.39 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009375/0.575, allocations: 6.126 MB / 1.044 GB, free: 7.184 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.5754, allocations: 0.8104 MB / 1.044 GB, free: 6.348 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004179/0.5758, allocations: 94.25 kB / 1.044 GB, free: 6.254 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.576, allocations: 107.4 kB / 1.045 GB, free: 6.148 MB / 0.795 GB Notification: Performance of SimCode: time 1.844e-06/0.576, allocations: 4 kB / 1.045 GB, free: 6.145 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.667/5.243, allocations: 10.67 MB / 1.055 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/16.96, allocations: 2.578 kB / 1.055 GB, free: 11.66 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource.fmu > Buildings_10_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe 2>&1)