Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 106.6 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002254/0.002254, allocations: 210.4 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.522/1.522, allocations: 230.6 MB / 252.8 MB, free: 8.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.259/3.259, allocations: 0.49 GB / 0.7916 GB, free: 33.36 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource,fileNamePrefix="Buildings_12_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource,fileNamePrefix="Buildings_12_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 69 kB / 1.149 GB, free: 26.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3775/0.3796, allocations: 176.1 MB / 1.321 GB, free: 3.348 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource): time 0.003459/0.383, allocations: 2.17 MB / 1.323 GB, free: 1.168 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00324/0.3863, allocations: 1.893 MB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.3864, allocations: 4 kB / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0006996/0.3871, allocations: 231 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.3872, allocations: 67.41 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.3884, allocations: 415.8 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005272/0.3889, allocations: 418.7 kB / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.389, allocations: 20.41 kB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001754/0.3892, allocations: 155.6 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.3894, allocations: 163.5 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.3894, allocations: 32 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004059/0.3898, allocations: 243.7 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.39, allocations: 119.6 kB / 1.327 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.3902, allocations: 163.2 kB / 1.327 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007117/0.3909, allocations: 0.5956 MB / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3909, allocations: 0 / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3909, allocations: 4 kB / 1.327 GB, free: 12.67 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.772e-06/0.3909, allocations: 0 / 1.327 GB, free: 12.67 MB / 1.029 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.001281/0.3922, allocations: 0.7214 MB / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3922, allocations: 11.98 kB / 1.328 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.99e-05/0.3923, allocations: 42.73 kB / 1.328 GB, free: 11.83 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/0.394, allocations: 164.5 kB / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005132/0.3945, allocations: 374.5 kB / 1.329 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.3947, allocations: 75.89 kB / 1.329 GB, free: 11.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.217e-05/0.3947, allocations: 8.375 kB / 1.329 GB, free: 11.18 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.3958, allocations: 445.1 kB / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.3958, allocations: 0 / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.3958, allocations: 0 / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3959, allocations: 7.938 kB / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.3975, allocations: 0.5816 MB / 1.33 GB, free: 10.14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.3994, allocations: 1.039 MB / 1.331 GB, free: 9.055 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00508/0.4045, allocations: 0.8416 MB / 1.331 GB, free: 8.203 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000825/0.4053, allocations: 296.7 kB / 1.332 GB, free: 7.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.4054, allocations: 4 kB / 1.332 GB, free: 7.906 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/0.4065, allocations: 446.9 kB / 1.332 GB, free: 7.457 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 2.655e-06/0.4065, allocations: 0 / 1.332 GB, free: 7.457 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002731/0.4092, allocations: 0.9214 MB / 1.333 GB, free: 6.531 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.4092, allocations: 51.41 kB / 1.333 GB, free: 6.469 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005535/0.4098, allocations: 433.6 kB / 1.334 GB, free: 6.035 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.185e-05/0.4099, allocations: 33.7 kB / 1.334 GB, free: 5.996 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.41, allocations: 172.1 kB / 1.334 GB, free: 5.824 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.36e-05/0.4101, allocations: 47.59 kB / 1.334 GB, free: 5.777 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.4102, allocations: 65.61 kB / 1.334 GB, free: 5.707 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000184/0.4104, allocations: 350.7 kB / 1.334 GB, free: 5.355 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009526/0.4114, allocations: 380.5 kB / 1.335 GB, free: 4.98 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008954/0.4123, allocations: 377.8 kB / 1.335 GB, free: 4.613 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.4139, allocations: 0.5997 MB / 1.335 GB, free: 4.004 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4139, allocations: 0 / 1.335 GB, free: 4.004 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002143/0.416, allocations: 0.899 MB / 1.336 GB, free: 3.094 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.07e-05/0.4161, allocations: 45.69 kB / 1.336 GB, free: 3.043 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.4161, allocations: 0 / 1.336 GB, free: 3.043 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.4161, allocations: 0 / 1.336 GB, free: 3.043 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004777/0.4166, allocations: 63.86 kB / 1.336 GB, free: 2.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.4166, allocations: 4 kB / 1.336 GB, free: 2.977 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004212/0.417, allocations: 47.84 kB / 1.337 GB, free: 2.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.4171, allocations: 11.98 kB / 1.337 GB, free: 2.918 MB / 1.029 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.0002961/0.4174, allocations: 187.3 kB / 1.337 GB, free: 2.727 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.011e-05/0.4174, allocations: 39.77 kB / 1.337 GB, free: 2.688 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.63e-05/0.4175, allocations: 43.45 kB / 1.337 GB, free: 2.648 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4175, allocations: 4 kB / 1.337 GB, free: 2.645 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.4175, allocations: 3.984 kB / 1.337 GB, free: 2.641 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.4175, allocations: 3.938 kB / 1.337 GB, free: 2.637 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006362/0.4182, allocations: 0.5555 MB / 1.337 GB, free: 2.031 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4182, allocations: 0 / 1.337 GB, free: 2.031 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004629/0.4186, allocations: 71.84 kB / 1.337 GB, free: 1.961 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.4186, allocations: 0 / 1.337 GB, free: 1.961 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.4187, allocations: 11.98 kB / 1.337 GB, free: 1.949 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.4187, allocations: 0 / 1.337 GB, free: 1.949 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4187, allocations: 0 / 1.337 GB, free: 1.949 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/0.4204, allocations: 0.6566 MB / 1.338 GB, free: 1.273 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.4206, allocations: 176.6 kB / 1.338 GB, free: 1.082 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.744e-05/0.4207, allocations: 4 kB / 1.338 GB, free: 1.078 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004492/0.4211, allocations: 51.88 kB / 1.338 GB, free: 1.027 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.689e-05/0.4212, allocations: 19.97 kB / 1.338 GB, free: 1.008 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.335e-05/0.4213, allocations: 19.92 kB / 1.338 GB, free: 0.9883 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004015/0.4217, allocations: 315.1 kB / 1.339 GB, free: 0.6797 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4217, allocations: 0 / 1.339 GB, free: 0.6797 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005171/0.4222, allocations: 79.94 kB / 1.339 GB, free: 0.6016 MB / 1.029 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.002368/0.4245, allocations: 1.241 MB / 1.34 GB, free: 15.32 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001932/0.4265, allocations: 0.7471 MB / 1.341 GB, free: 14.57 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4265, allocations: 0 / 1.341 GB, free: 14.57 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0008646/0.4273, allocations: 315.7 kB / 1.341 GB, free: 14.26 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.4278, allocations: 81.39 kB / 1.341 GB, free: 14.18 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.4385, allocations: 6.101 MB / 1.347 GB, free: 7.988 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.439, allocations: 0.8143 MB / 1.348 GB, free: 7.148 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0003885/0.4394, allocations: 102.2 kB / 1.348 GB, free: 7.047 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.4397, allocations: 103.4 kB / 1.348 GB, free: 6.945 MB / 1.045 GB Notification: Performance of SimCode: time 1.072e-06/0.4397, allocations: 0 / 1.348 GB, free: 6.945 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03713/0.4768, allocations: 10.81 MB / 1.359 GB, free: 12.34 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.421/8.898, allocations: 19.41 kB / 1.359 GB, free: 12.32 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe ; mkfifo Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe >> ../files/Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource.fmu > Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_DXSystems_BaseClasses_Examples_CapacityAirSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.DXSystems.BaseClasses.Examples.CapacityAirSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.790893330937251]