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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.00161/0.00161, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.002328/0.002328, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.898/2.898, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.512/5.512, allocations: 409.2 MB / 0.6838 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007963/0.0007964, allocations: 8 kB / 0.8375 GB, free: 6.598 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.283/1.284, allocations: 146.8 MB / 0.9809 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.003289/1.287, allocations: 1.741 MB / 0.9826 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003756/1.291, allocations: 1.615 MB / 0.9841 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/1.291, allocations: 4 kB / 0.9841 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001003/1.293, allocations: 203.2 kB / 0.9843 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005157/1.293, allocations: 79.72 kB / 0.9844 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001598/1.295, allocations: 364.7 kB / 0.9848 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007333/1.295, allocations: 255.5 kB / 0.985 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/1.296, allocations: 48.36 kB / 0.9851 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003324/1.296, allocations: 135.6 kB / 0.9852 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003054/1.296, allocations: 135.5 kB / 0.9853 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001007/1.296, allocations: 20 kB / 0.9853 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006404/1.297, allocations: 211.6 kB / 0.9855 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002152/1.297, allocations: 99.7 kB / 0.9856 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002009/1.297, allocations: 77.58 kB / 0.9857 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001242/1.299, allocations: 453.1 kB / 0.9861 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/1.299, allocations: 4 kB / 0.9861 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.075e-06/1.299, allocations: 0 / 0.9861 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.05e-05/1.299, allocations: 0 / 0.9861 GB, free: 0.918 MB / 0.7325 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.002113/1.301, allocations: 0.6612 MB / 0.9868 GB, free: 208 kB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.896e-05/1.301, allocations: 8.031 kB / 0.9868 GB, free: 200 kB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/1.301, allocations: 42.55 kB / 0.9868 GB, free: 148 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001991/1.303, allocations: 175.3 kB / 0.987 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000886/1.304, allocations: 349.3 kB / 0.9873 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/1.304, allocations: 75.34 kB / 0.9874 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.717e-05/1.304, allocations: 4 kB / 0.9874 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/1.306, allocations: 467.2 kB / 0.9879 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/1.306, allocations: 0 / 0.9879 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.398e-05/1.306, allocations: 0 / 0.9879 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/1.306, allocations: 0 / 0.9879 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/1.308, allocations: 0.6323 MB / 0.9885 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/1.31, allocations: 1.054 MB / 0.9895 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005651/1.316, allocations: 0.9197 MB / 0.9904 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.834e-05/1.316, allocations: 0 / 0.9904 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001505/1.317, allocations: 463.1 kB / 0.9908 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 4.178e-06/1.317, allocations: 4 kB / 0.9908 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of matching and sorting (n=16): time 0.003384/1.321, allocations: 0.9778 MB / 0.9918 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.468e-05/1.321, allocations: 63.33 kB / 0.9919 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008703/1.322, allocations: 425.6 kB / 0.9923 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001346/1.322, allocations: 37.69 kB / 0.9923 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004363/1.322, allocations: 164.1 kB / 0.9925 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/1.323, allocations: 59.19 kB / 0.9925 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/1.323, allocations: 4 kB / 0.9925 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002731/1.323, allocations: 350.8 kB / 0.9929 GB, free: 9.801 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/1.324, allocations: 396.6 kB / 0.9932 GB, free: 9.41 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/1.326, allocations: 391.7 kB / 0.9936 GB, free: 9.027 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/1.327, allocations: 371 kB / 0.994 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/1.327, allocations: 0 / 0.994 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002734/1.329, allocations: 0.9359 MB / 0.9949 GB, free: 7.711 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.336e-05/1.33, allocations: 46.78 kB / 0.9949 GB, free: 7.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/1.33, allocations: 4 kB / 0.9949 GB, free: 7.656 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.033e-05/1.33, allocations: 0 / 0.9949 GB, free: 7.656 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005385/1.33, allocations: 79.81 kB / 0.995 GB, free: 7.578 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/1.33, allocations: 0 / 0.995 GB, free: 7.578 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005137/1.331, allocations: 55.8 kB / 0.9951 GB, free: 7.523 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.585e-05/1.331, allocations: 15.98 kB / 0.9951 GB, free: 7.508 MB / 0.7481 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 ($whenCondition2,$whenCondition1,cooCap.stage,$PRE.cooCap.checkBoundsTEva[1],cooCap.checkBoundsTEva[1],$PRE.cooCap.checkBoundsTCon[1],cooCap.checkBoundsTCon[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005083/1.331, allocations: 185.8 kB / 0.9952 GB, free: 7.316 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.791e-05/1.331, allocations: 35.62 kB / 0.9953 GB, free: 7.281 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/1.332, allocations: 43.39 kB / 0.9953 GB, free: 7.238 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/1.332, allocations: 4 kB / 0.9953 GB, free: 7.234 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/1.332, allocations: 3.953 kB / 0.9953 GB, free: 7.23 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/1.332, allocations: 3.938 kB / 0.9953 GB, free: 7.227 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008593/1.332, allocations: 0.5361 MB / 0.9959 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/1.332, allocations: 3.984 kB / 0.9959 GB, free: 6.637 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004917/1.333, allocations: 71.92 kB / 0.9959 GB, free: 6.566 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/1.333, allocations: 0 / 0.9959 GB, free: 6.566 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/1.333, allocations: 11.98 kB / 0.9959 GB, free: 6.555 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/1.333, allocations: 4 kB / 0.9959 GB, free: 6.551 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/1.333, allocations: 3.953 kB / 0.9959 GB, free: 6.547 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/1.335, allocations: 0.6972 MB / 0.9966 GB, free: 5.832 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003593/1.336, allocations: 164.7 kB / 0.9968 GB, free: 5.652 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.358e-05/1.336, allocations: 8 kB / 0.9968 GB, free: 5.645 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/1.336, allocations: 59.94 kB / 0.9968 GB, free: 5.586 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/1.336, allocations: 23.92 kB / 0.9969 GB, free: 5.562 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/1.336, allocations: 15.92 kB / 0.9969 GB, free: 5.547 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0005132/1.337, allocations: 315.1 kB / 0.9972 GB, free: 5.242 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/1.337, allocations: 4 kB / 0.9972 GB, free: 5.238 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005487/1.337, allocations: 76 kB / 0.9973 GB, free: 5.164 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002643/1.34, allocations: 1.269 MB / 0.9985 GB, free: 3.867 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002182/1.342, allocations: 0.7963 MB / 0.9993 GB, free: 3.059 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/1.342, allocations: 0 / 0.9993 GB, free: 3.059 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008809/1.343, allocations: 351.7 kB / 0.9996 GB, free: 2.715 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006173/1.344, allocations: 73.45 kB / 0.9997 GB, free: 2.645 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008704/1.353, allocations: 3.763 MB / 1.003 GB, free: 14.83 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000673/1.353, allocations: 0.8185 MB / 1.004 GB, free: 13.98 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005364/1.354, allocations: 98.25 kB / 1.004 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/1.354, allocations: 99.38 kB / 1.004 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of SimCode: time 2.044e-06/1.354, allocations: 4 kB / 1.004 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03438/1.389, allocations: 9.743 MB / 1.014 GB, free: 4.301 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003119/1.389, allocations: 201.8 kB / 1.014 GB, free: 4.059 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.354/4.743, allocations: 0 / 1.014 GB, free: 4.059 MB / 0.7637 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource_res.mat does not exist to compare? outputFormat=mat