Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled,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_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled,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_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 108 kB / 15.6 MB, free: 132 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.001963/0.001963, allocations: 198.8 kB / 16.54 MB, free: 6.672 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.532/1.532, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.782/2.782, allocations: 437 MB / 0.7104 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.00198, allocations: 63.89 kB / 0.8692 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7962/0.7982, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.004547/0.8028, allocations: 2.891 MB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003471/0.8063, allocations: 2.209 MB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.8064, allocations: 4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008768/0.8074, allocations: 264.4 kB / 1.023 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.8075, allocations: 83.22 kB / 1.023 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.8089, allocations: 490.8 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006259/0.8095, allocations: 0.5025 MB / 1.024 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.8097, allocations: 60.7 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.8099, allocations: 199.4 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003006/0.8102, allocations: 215.2 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.808e-05/0.8103, allocations: 36 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004491/0.8108, allocations: 247.7 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.811, allocations: 155.6 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.8112, allocations: 214.9 kB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008646/0.8121, allocations: 0.7439 MB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.8121, allocations: 0 / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8121, allocations: 4 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.152e-05/0.8121, allocations: 0 / 1.025 GB, free: 10.2 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001489/0.8136, allocations: 0.8321 MB / 1.026 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.8137, allocations: 11.98 kB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.816, allocations: 240.1 kB / 1.026 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005879/0.8166, allocations: 429.9 kB / 1.027 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.8167, allocations: 79.94 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.8168, allocations: 16.38 kB / 1.027 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.8182, allocations: 0.5338 MB / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.8182, allocations: 0 / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.533e-05/0.8183, allocations: 7.984 kB / 1.027 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.8183, allocations: 7.938 kB / 1.027 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002174/0.8205, allocations: 0.7611 MB / 1.028 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.8229, allocations: 1.253 MB / 1.029 GB, free: 5.875 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005632/0.8286, allocations: 1.017 MB / 1.03 GB, free: 4.848 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/0.8297, allocations: 400.9 kB / 1.031 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.8297, allocations: 0 / 1.031 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001351/0.8311, allocations: 0.5351 MB / 1.031 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=21): time 2.104e-06/0.8311, allocations: 0 / 1.031 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.003524/0.8346, allocations: 1.179 MB / 1.033 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.8347, allocations: 55.41 kB / 1.033 GB, free: 2.656 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000679/0.8354, allocations: 0.5252 MB / 1.033 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.515e-05/0.8354, allocations: 33.7 kB / 1.033 GB, free: 2.086 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.8356, allocations: 208.5 kB / 1.033 GB, free: 1.875 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.302e-05/0.8357, allocations: 59.11 kB / 1.033 GB, free: 1.816 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.8359, allocations: 73.56 kB / 1.033 GB, free: 1.738 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001867/0.8361, allocations: 354.8 kB / 1.034 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.8373, allocations: 468.5 kB / 1.034 GB, free: 0.9219 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.8386, allocations: 0.495 MB / 1.035 GB, free: 432 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002136/0.8407, allocations: 0.7456 MB / 1.035 GB, free: 15.67 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.8407, allocations: 0 / 1.035 GB, free: 15.67 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002721/0.8435, allocations: 1.081 MB / 1.036 GB, free: 14.57 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.666e-05/0.8435, allocations: 41.69 kB / 1.037 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.8435, allocations: 0 / 1.037 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.8436, allocations: 3.938 kB / 1.037 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006583/0.8442, allocations: 91.89 kB / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.8443, allocations: 3.938 kB / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005524/0.8448, allocations: 63.83 kB / 1.037 GB, free: 14.37 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-05/0.8449, allocations: 15.98 kB / 1.037 GB, free: 14.35 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 (22): * Single equations (assignments): 21 * 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.0003128/0.8452, allocations: 205.8 kB / 1.037 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.8453, allocations: 47.44 kB / 1.037 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.124e-05/0.8454, allocations: 59.84 kB / 1.037 GB, free: 14.04 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.8454, allocations: 0 / 1.037 GB, free: 14.04 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.8454, allocations: 7.938 kB / 1.037 GB, free: 14.03 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.8454, allocations: 3.984 kB / 1.037 GB, free: 14.02 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007656/0.8462, allocations: 0.6454 MB / 1.038 GB, free: 13.33 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.8462, allocations: 0 / 1.038 GB, free: 13.33 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006399/0.8469, allocations: 91.83 kB / 1.038 GB, free: 13.24 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.8469, allocations: 0 / 1.038 GB, free: 13.24 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.972e-05/0.8469, allocations: 19.91 kB / 1.038 GB, free: 13.22 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.8469, allocations: 8 kB / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.8469, allocations: 0 / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002345/0.8493, allocations: 0.8302 MB / 1.039 GB, free: 12.36 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002793/0.8496, allocations: 196.3 kB / 1.039 GB, free: 12.15 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.875e-05/0.8497, allocations: 11.94 kB / 1.039 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005908/0.8503, allocations: 59.92 kB / 1.039 GB, free: 12.08 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.499e-05/0.8504, allocations: 31.91 kB / 1.039 GB, free: 12.05 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.8504, allocations: 15.97 kB / 1.039 GB, free: 12.04 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004791/0.8509, allocations: 387.1 kB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8509, allocations: 0 / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000417/0.8513, allocations: 92 kB / 1.039 GB, free: 11.57 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 (21): * Single equations (assignments): 19 * 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.0002901/0.8516, allocations: 137.3 kB / 1.039 GB, free: 11.43 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002581/0.8542, allocations: 0.9635 MB / 1.04 GB, free: 10.45 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.8542, allocations: 0 / 1.04 GB, free: 10.45 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.8554, allocations: 430 kB / 1.041 GB, free: 10.03 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.8559, allocations: 93.77 kB / 1.041 GB, free: 9.941 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.8585, allocations: 1.072 MB / 1.042 GB, free: 8.844 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005564/0.859, allocations: 0.8544 MB / 1.043 GB, free: 7.961 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0005395/0.8596, allocations: 130.9 kB / 1.043 GB, free: 7.836 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.8598, allocations: 43.41 kB / 1.043 GB, free: 7.797 MB / 0.795 GB Notification: Performance of SimCode: time 5.01e-07/0.8598, allocations: 0 / 1.043 GB, free: 7.797 MB / 0.795 GB Notification: Performance of Templates: time 0.01625/0.876, allocations: 8.771 MB / 1.051 GB, free: 15.12 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.makefile (rm -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.sim & ./Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches