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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008437/0.0008437, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005014/0.005014, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.228/1.228, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.58/2.58, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003023, allocations: 14.78 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2441, allocations: 159.6 MB / 1.059 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.002206/0.2464, allocations: 1.845 MB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002478/0.2489, allocations: 1.823 MB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.249, allocations: 4 kB / 1.062 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006192/0.2497, allocations: 219.2 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.2498, allocations: 55.55 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008957/0.2507, allocations: 378.4 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004298/0.2512, allocations: 386.8 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.528e-05/0.2513, allocations: 40.39 kB / 1.063 GB, free: 84 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.2515, allocations: 135.6 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.2517, allocations: 155.4 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.228e-05/0.2517, allocations: 16 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003528/0.2521, allocations: 215.7 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.2522, allocations: 111.7 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.2524, allocations: 180.9 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005654/0.253, allocations: 0.5723 MB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.253, allocations: 8 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.503e-06/0.253, allocations: 0 / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.253, allocations: 0 / 1.065 GB, free: 14.7 MB / 0.8262 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.001034/0.254, allocations: 0.6479 MB / 1.065 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.2541, allocations: 15.97 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.618e-05/0.2542, allocations: 46.73 kB / 1.065 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.256, allocations: 160.4 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.2564, allocations: 366.3 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.2565, allocations: 83.86 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.416e-05/0.2566, allocations: 12.38 kB / 1.066 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.2576, allocations: 461.1 kB / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.2576, allocations: 0 / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.2577, allocations: 11.94 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.2577, allocations: 0 / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.2593, allocations: 0.6207 MB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.2611, allocations: 1.047 MB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005191/0.2663, allocations: 0.912 MB / 1.069 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008122/0.2672, allocations: 332.6 kB / 1.069 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.2672, allocations: 4 kB / 1.069 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001011/0.2682, allocations: 465.5 kB / 1.07 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 3.667e-06/0.2682, allocations: 4 kB / 1.07 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002544/0.2708, allocations: 0.985 MB / 1.071 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.2708, allocations: 51.41 kB / 1.071 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004447/0.2713, allocations: 441.6 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.251e-05/0.2713, allocations: 33.7 kB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.2715, allocations: 164.1 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.914e-05/0.2715, allocations: 47.36 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-05/0.2716, allocations: 25.7 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2717, allocations: 346.8 kB / 1.072 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00091/0.2727, allocations: 404.6 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008824/0.2735, allocations: 393.8 kB / 1.073 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.2752, allocations: 0.6349 MB / 1.073 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2752, allocations: 3.938 kB / 1.073 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00198/0.2772, allocations: 0.9415 MB / 1.074 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/0.2772, allocations: 49.69 kB / 1.074 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.2772, allocations: 0 / 1.074 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.2772, allocations: 0 / 1.074 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.2777, allocations: 75.86 kB / 1.074 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2777, allocations: 3.984 kB / 1.074 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/0.2781, allocations: 59.73 kB / 1.074 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.2782, allocations: 15.98 kB / 1.074 GB, free: 4.637 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.0002113/0.2784, allocations: 185.8 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.896e-05/0.2785, allocations: 31.62 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.698e-05/0.2786, allocations: 39.47 kB / 1.075 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.2786, allocations: 4 kB / 1.075 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2786, allocations: 0 / 1.075 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.2786, allocations: 3.938 kB / 1.075 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005467/0.2791, allocations: 0.5438 MB / 1.075 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2791, allocations: 0 / 1.075 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004693/0.2796, allocations: 75.86 kB / 1.075 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.2796, allocations: 0 / 1.075 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.2797, allocations: 11.98 kB / 1.075 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2797, allocations: 4 kB / 1.075 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.2797, allocations: 4 kB / 1.075 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.2814, allocations: 0.6955 MB / 1.076 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.2816, allocations: 168.6 kB / 1.076 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/0.2817, allocations: 8 kB / 1.076 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004885/0.2822, allocations: 55.94 kB / 1.076 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.685e-05/0.2822, allocations: 19.97 kB / 1.076 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.2823, allocations: 23.92 kB / 1.076 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003249/0.2826, allocations: 319 kB / 1.076 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.2826, allocations: 4 kB / 1.076 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003585/0.283, allocations: 84.23 kB / 1.076 GB, free: 2.281 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.002132/0.2851, allocations: 1.266 MB / 1.078 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001891/0.287, allocations: 0.7996 MB / 1.079 GB, free: 176 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.287, allocations: 0 / 1.079 GB, free: 176 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008842/0.2879, allocations: 347.7 kB / 1.079 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.2884, allocations: 77.45 kB / 1.079 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00987/0.2983, allocations: 6.316 MB / 1.085 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.2986, allocations: 0.8144 MB / 1.086 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004201/0.2991, allocations: 94.25 kB / 1.086 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.2993, allocations: 103.4 kB / 1.086 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of SimCode: time 4.01e-07/0.2993, allocations: 0 / 1.086 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.3204, allocations: 10.03 MB / 1.096 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.3206, allocations: 222.1 kB / 1.096 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.17, allocations: 0 / 1.096 GB, free: 14.29 MB / 0.8575 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)