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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.000853/0.0008568, allocations: 97.64 kB / 15.36 MB, free: 0.7305 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.0008319/0.000832, allocations: 173.2 kB / 16.27 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.268/1.268, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.581/2.581, allocations: 437.8 MB / 0.7121 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0003997, allocations: 8 kB / 0.8729 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6388/0.6392, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.002271/0.6415, allocations: 1.85 MB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002425/0.644, allocations: 1.816 MB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.107e-05/0.6441, allocations: 4 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005927/0.6447, allocations: 221.2 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.6448, allocations: 51.55 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008322/0.6457, allocations: 378.5 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.6461, allocations: 378.8 kB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.6462, allocations: 48.31 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.6463, allocations: 139.5 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.6465, allocations: 155.4 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.225e-05/0.6466, allocations: 16 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000323/0.6469, allocations: 219.7 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.647, allocations: 115.7 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.6472, allocations: 180.9 kB / 1.029 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005425/0.6478, allocations: 0.5685 MB / 1.029 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.6478, allocations: 0 / 1.029 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6478, allocations: 0 / 1.029 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.6478, allocations: 0 / 1.029 GB, free: 9.691 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.0009685/0.6488, allocations: 0.6479 MB / 1.03 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.6488, allocations: 12.03 kB / 1.03 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.044e-05/0.6489, allocations: 42.75 kB / 1.03 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001744/0.6506, allocations: 168.3 kB / 1.03 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.651, allocations: 362.3 kB / 1.03 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-05/0.6511, allocations: 75.94 kB / 1.03 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.6512, allocations: 12.38 kB / 1.03 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.6522, allocations: 462.9 kB / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.6522, allocations: 0 / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.6523, allocations: 8 kB / 1.031 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.6523, allocations: 0 / 1.031 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.6539, allocations: 0.6206 MB / 1.031 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.6557, allocations: 1.054 MB / 1.032 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005295/0.661, allocations: 0.9236 MB / 1.033 GB, free: 5.145 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008087/0.6618, allocations: 328.6 kB / 1.034 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.6619, allocations: 7.922 kB / 1.034 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.6629, allocations: 463 kB / 1.034 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.034e-06/0.6629, allocations: 0 / 1.034 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002685/0.6656, allocations: 0.9873 MB / 1.035 GB, free: 3.355 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.6657, allocations: 55.39 kB / 1.035 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004934/0.6662, allocations: 429.6 kB / 1.036 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.652e-05/0.6662, allocations: 37.69 kB / 1.036 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.6664, allocations: 164.1 kB / 1.036 GB, free: 2.656 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.691e-05/0.6664, allocations: 55.28 kB / 1.036 GB, free: 2.602 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.655e-05/0.6665, allocations: 25.7 kB / 1.036 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.6666, allocations: 346.8 kB / 1.036 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009078/0.6675, allocations: 404.6 kB / 1.037 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008735/0.6684, allocations: 391.7 kB / 1.037 GB, free: 1.441 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/0.67, allocations: 0.64 MB / 1.038 GB, free: 0.793 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.67, allocations: 0 / 1.038 GB, free: 0.793 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002042/0.6721, allocations: 0.9409 MB / 1.038 GB, free: 15.84 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.888e-05/0.6721, allocations: 45.69 kB / 1.038 GB, free: 15.79 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.6722, allocations: 3.938 kB / 1.038 GB, free: 15.78 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.6722, allocations: 0 / 1.038 GB, free: 15.78 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004704/0.6727, allocations: 71.92 kB / 1.039 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.6727, allocations: 3.938 kB / 1.039 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000422/0.6731, allocations: 59.88 kB / 1.039 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.391e-05/0.6731, allocations: 11.98 kB / 1.039 GB, free: 15.64 MB / 0.795 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.0002194/0.6734, allocations: 186.9 kB / 1.039 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.354e-05/0.6734, allocations: 35.53 kB / 1.039 GB, free: 15.41 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.692e-05/0.6735, allocations: 39.47 kB / 1.039 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.6735, allocations: 4 kB / 1.039 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.6735, allocations: 0 / 1.039 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.6735, allocations: 7.938 kB / 1.039 GB, free: 15.36 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.6741, allocations: 0.5438 MB / 1.039 GB, free: 14.77 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.6741, allocations: 0 / 1.039 GB, free: 14.77 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004826/0.6746, allocations: 75.86 kB / 1.039 GB, free: 14.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.6746, allocations: 0 / 1.039 GB, free: 14.7 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.6746, allocations: 11.98 kB / 1.04 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.6746, allocations: 0 / 1.04 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.6746, allocations: 8 kB / 1.04 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.6763, allocations: 0.6993 MB / 1.04 GB, free: 13.96 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.6765, allocations: 160.7 kB / 1.04 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.758e-05/0.6766, allocations: 8 kB / 1.04 GB, free: 13.77 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004759/0.6771, allocations: 55.94 kB / 1.04 GB, free: 13.72 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.249e-05/0.6772, allocations: 19.97 kB / 1.04 GB, free: 13.7 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.6772, allocations: 23.92 kB / 1.04 GB, free: 13.68 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003126/0.6775, allocations: 319 kB / 1.041 GB, free: 13.36 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6775, allocations: 0 / 1.041 GB, free: 13.36 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003516/0.6779, allocations: 76 kB / 1.041 GB, free: 13.29 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.00213/0.68, allocations: 1.274 MB / 1.042 GB, free: 11.99 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001856/0.6819, allocations: 0.805 MB / 1.043 GB, free: 11.17 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.6819, allocations: 4 kB / 1.043 GB, free: 11.17 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0008703/0.6828, allocations: 347.7 kB / 1.043 GB, free: 10.83 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.6833, allocations: 82.5 kB / 1.043 GB, free: 10.75 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009973/0.6932, allocations: 6.311 MB / 1.049 GB, free: 4.355 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.6936, allocations: 0.8065 MB / 1.05 GB, free: 3.523 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000445/0.6941, allocations: 106.2 kB / 1.05 GB, free: 3.422 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.6943, allocations: 99.38 kB / 1.05 GB, free: 3.324 MB / 0.795 GB Notification: Performance of SimCode: time 9.12e-07/0.6943, allocations: 4 kB / 1.05 GB, free: 3.32 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.7151, allocations: 10 MB / 1.06 GB, free: 9.543 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.7153, allocations: 217.6 kB / 1.06 GB, free: 9.289 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/2.807, allocations: 4 kB / 1.06 GB, free: 9.285 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)