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.001486/0.001486, allocations: 108 kB / 15.61 MB, free: 152 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.001717/0.001717, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.681/2.681, allocations: 461.9 MB / 0.7346 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 64.48 kB / 0.8992 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2431, allocations: 157.4 MB / 1.053 GB, free: 8.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.00309/0.2462, allocations: 2.15 MB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002448/0.2486, allocations: 1.854 MB / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.2488, allocations: 0 / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006166/0.2494, allocations: 227 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.2496, allocations: 75.34 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009566/0.2506, allocations: 408.5 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004455/0.251, allocations: 418.7 kB / 1.058 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.735e-05/0.2511, allocations: 36.41 kB / 1.058 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.2513, allocations: 151.6 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.2515, allocations: 163.4 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.728e-05/0.2516, allocations: 28 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003947/0.252, allocations: 235.7 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.2522, allocations: 111.7 kB / 1.059 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.2524, allocations: 163.2 kB / 1.059 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00062/0.253, allocations: 0.5959 MB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.253, allocations: 0 / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.112e-06/0.253, allocations: 0 / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.111e-05/0.253, allocations: 0 / 1.059 GB, free: 1.742 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.001113/0.2541, allocations: 0.7022 MB / 1.06 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2542, allocations: 8.625 kB / 1.06 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.852e-05/0.2542, allocations: 46.73 kB / 1.06 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001726/0.256, allocations: 164.3 kB / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.2564, allocations: 362.3 kB / 1.061 GB, free: 376 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.871e-05/0.2565, allocations: 75.94 kB / 1.061 GB, free: 288 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.751e-05/0.2566, allocations: 16.31 kB / 1.061 GB, free: 272 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009932/0.2576, allocations: 437.3 kB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.2576, allocations: 3.984 kB / 1.061 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.2576, allocations: 4 kB / 1.061 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.2576, allocations: 8 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.2592, allocations: 0.5815 MB / 1.062 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.2612, allocations: 1.035 MB / 1.063 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004961/0.2662, allocations: 0.8417 MB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007765/0.267, allocations: 316.6 kB / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/0.267, allocations: 0 / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.268, allocations: 444.9 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.793e-06/0.268, allocations: 4 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002469/0.2705, allocations: 0.9148 MB / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.2706, allocations: 63.28 kB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.271, allocations: 441.5 kB / 1.066 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.287e-05/0.2711, allocations: 33.7 kB / 1.066 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.2713, allocations: 164.1 kB / 1.066 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.2713, allocations: 51.34 kB / 1.066 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.2715, allocations: 49.67 kB / 1.066 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.2716, allocations: 362.7 kB / 1.066 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008581/0.2724, allocations: 380.6 kB / 1.067 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000822/0.2733, allocations: 373.3 kB / 1.067 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.2747, allocations: 0.5979 MB / 1.068 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.2748, allocations: 4 kB / 1.068 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001889/0.2767, allocations: 0.9046 MB / 1.068 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.2767, allocations: 37.7 kB / 1.068 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2767, allocations: 3.984 kB / 1.068 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.2767, allocations: 0 / 1.068 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.2772, allocations: 67.92 kB / 1.068 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2772, allocations: 0 / 1.068 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.2776, allocations: 47.83 kB / 1.069 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/0.2777, allocations: 15.98 kB / 1.069 GB, free: 7.988 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.000207/0.2779, allocations: 193.1 kB / 1.069 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.805e-05/0.278, allocations: 35.53 kB / 1.069 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.655e-05/0.278, allocations: 35.47 kB / 1.069 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.278, allocations: 4 kB / 1.069 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.278, allocations: 3.984 kB / 1.069 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.278, allocations: 3.938 kB / 1.069 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004909/0.2785, allocations: 0.5361 MB / 1.069 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2785, allocations: 0 / 1.069 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004457/0.279, allocations: 63.91 kB / 1.069 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.279, allocations: 4 kB / 1.069 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.279, allocations: 3.984 kB / 1.069 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.279, allocations: 4 kB / 1.069 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2791, allocations: 4 kB / 1.069 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.2807, allocations: 0.6663 MB / 1.07 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/0.2809, allocations: 160.6 kB / 1.07 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.336e-05/0.2809, allocations: 15.92 kB / 1.07 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004369/0.2814, allocations: 43.94 kB / 1.07 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.122e-05/0.2815, allocations: 23.97 kB / 1.07 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.2815, allocations: 15.91 kB / 1.07 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002989/0.2818, allocations: 315.1 kB / 1.071 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2818, allocations: 0 / 1.071 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003393/0.2822, allocations: 88.23 kB / 1.071 GB, free: 5.699 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.001994/0.2842, allocations: 1.229 MB / 1.072 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001731/0.2859, allocations: 0.7762 MB / 1.073 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2859, allocations: 0 / 1.073 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007924/0.2867, allocations: 323.7 kB / 1.073 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.2871, allocations: 77.39 kB / 1.073 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009629/0.2968, allocations: 6.136 MB / 1.079 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.2971, allocations: 0.8181 MB / 1.08 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004161/0.2975, allocations: 102.2 kB / 1.08 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/0.2977, allocations: 99.38 kB / 1.08 GB, free: 12 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.2978, allocations: 0 / 1.08 GB, free: 12 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.619/0.9168, allocations: 10.69 MB / 1.09 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.899, allocations: 10.06 kB / 1.09 GB, free: 1.508 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)