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: translateModel(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooCap.TConIn|cooCap.TEvaIn|cooCap.m_flow|cooCap.Q_flow.1.|cooCap.EIR.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource") translateModel(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooCap.TConIn|cooCap.TEvaIn|cooCap.m_flow|cooCap.Q_flow.1.|cooCap.EIR.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 99.94 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.001231/0.001231, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.797/2.797, allocations: 436.5 MB / 0.7104 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003808/0.0003808, allocations: 11.94 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9056/0.906, allocations: 153.6 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.002398/0.9085, allocations: 1.75 MB / 1.023 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002489/0.911, allocations: 1.611 MB / 1.024 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.9111, allocations: 4 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006916/0.9118, allocations: 211.2 kB / 1.024 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.9121, allocations: 71.78 kB / 1.024 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009245/0.913, allocations: 356.7 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003689/0.9134, allocations: 272 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.9135, allocations: 36.38 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.9137, allocations: 135.6 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/0.9139, allocations: 139.6 kB / 1.025 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.9139, allocations: 16 kB / 1.025 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000357/0.9143, allocations: 207.6 kB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.9144, allocations: 107.7 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.157e-05/0.9145, allocations: 81.52 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004483/0.915, allocations: 448.9 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.915, allocations: 0 / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.634e-06/0.915, allocations: 0 / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.915, allocations: 0 / 1.026 GB, free: 11.68 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.001117/0.9161, allocations: 0.6594 MB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.9162, allocations: 11.98 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001637/0.9178, allocations: 163.4 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005444/0.9184, allocations: 361.3 kB / 1.027 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.9185, allocations: 75.39 kB / 1.027 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.168e-05/0.9185, allocations: 11.98 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.9196, allocations: 454.8 kB / 1.028 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.9196, allocations: 0 / 1.028 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.9196, allocations: 4 kB / 1.028 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.9197, allocations: 12 kB / 1.028 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.9213, allocations: 0.6246 MB / 1.028 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.9232, allocations: 1.043 MB / 1.029 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005038/0.9282, allocations: 0.9158 MB / 1.03 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.738e-05/0.9283, allocations: 4 kB / 1.03 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.9294, allocations: 461.8 kB / 1.031 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 3.236e-06/0.9294, allocations: 0 / 1.031 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002652/0.9321, allocations: 0.985 MB / 1.032 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.9321, allocations: 55.39 kB / 1.032 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000473/0.9326, allocations: 429.6 kB / 1.032 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/0.9327, allocations: 37.69 kB / 1.032 GB, free: 5.195 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.9328, allocations: 164.1 kB / 1.032 GB, free: 5.031 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.366e-05/0.9329, allocations: 55.28 kB / 1.032 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.9329, allocations: 7.938 kB / 1.032 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.933, allocations: 346.8 kB / 1.033 GB, free: 4.621 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008635/0.9339, allocations: 408.5 kB / 1.033 GB, free: 4.219 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008441/0.9348, allocations: 391.6 kB / 1.034 GB, free: 3.836 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008321/0.9356, allocations: 371.3 kB / 1.034 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.9356, allocations: 0 / 1.034 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002021/0.9377, allocations: 0.9359 MB / 1.035 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.385e-05/0.9377, allocations: 47.25 kB / 1.035 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.9378, allocations: 0 / 1.035 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.9378, allocations: 3.953 kB / 1.035 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004592/0.9382, allocations: 75.86 kB / 1.035 GB, free: 2.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.9383, allocations: 0 / 1.035 GB, free: 2.391 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.9387, allocations: 59.8 kB / 1.035 GB, free: 2.332 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.9387, allocations: 11.98 kB / 1.035 GB, free: 2.32 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 ($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.0002771/0.939, allocations: 188.4 kB / 1.035 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.97e-05/0.9391, allocations: 31.62 kB / 1.035 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.972e-05/0.9392, allocations: 51.45 kB / 1.035 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.9392, allocations: 3.953 kB / 1.035 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.9392, allocations: 0 / 1.035 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.9392, allocations: 0 / 1.035 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006552/0.9399, allocations: 0.5438 MB / 1.036 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.9399, allocations: 3.984 kB / 1.036 GB, free: 1.445 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004477/0.9403, allocations: 75.86 kB / 1.036 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.9404, allocations: 4 kB / 1.036 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.9404, allocations: 7.984 kB / 1.036 GB, free: 1.359 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.9404, allocations: 7.953 kB / 1.036 GB, free: 1.352 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.9404, allocations: 0 / 1.036 GB, free: 1.352 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.9421, allocations: 0.6944 MB / 1.037 GB, free: 0.6406 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.9424, allocations: 164.7 kB / 1.037 GB, free: 472 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.869e-05/0.9424, allocations: 8 kB / 1.037 GB, free: 464 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004584/0.9429, allocations: 55.94 kB / 1.037 GB, free: 408 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.943, allocations: 27.91 kB / 1.037 GB, free: 380 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-05/0.9431, allocations: 11.98 kB / 1.037 GB, free: 368 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004381/0.9435, allocations: 323 kB / 1.037 GB, free: 48 kB / 0.7794 GB Notification: Performance of sort global known variables: time 3.61e-07/0.9435, allocations: 0 / 1.037 GB, free: 48 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005647/0.9441, allocations: 72.05 kB / 1.037 GB, free: 15.97 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 (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.0004093/0.9445, allocations: 135.6 kB / 1.037 GB, free: 15.84 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001979/0.9465, allocations: 0.7996 MB / 1.038 GB, free: 15.02 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.9465, allocations: 4 kB / 1.038 GB, free: 15.02 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0008829/0.9474, allocations: 343.7 kB / 1.038 GB, free: 14.68 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.9479, allocations: 66.03 kB / 1.038 GB, free: 14.62 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.95, allocations: 0.8975 MB / 1.039 GB, free: 13.7 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006179/0.9507, allocations: 0.8221 MB / 1.04 GB, free: 12.85 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004412/0.9511, allocations: 94.25 kB / 1.04 GB, free: 12.76 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.9513, allocations: 35.41 kB / 1.04 GB, free: 12.72 MB / 0.795 GB Notification: Performance of SimCode: time 1.413e-06/0.9513, allocations: 0 / 1.04 GB, free: 12.72 MB / 0.795 GB Notification: Performance of Templates: time 0.0124/0.9637, allocations: 6.442 MB / 1.047 GB, free: 6.348 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.makefile (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 & ./Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource.csv","../files/Buildings_latest_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches