Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Cooling.AirSource.Examples.SingleSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinSpeDX.vol.T|sinSpeDX.sta_a.T|sinSpeDX.dxCoi.mWat_flow|sinSpeDX.vol.X_w|sinSpeDX.sta_a.X.1.|onOff.y|sinSpeDX.P|sinSpeDX.dxCoi.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed") translateModel(Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinSpeDX.vol.T|sinSpeDX.sta_a.T|sinSpeDX.dxCoi.mWat_flow|sinSpeDX.vol.X_w|sinSpeDX.sta_a.X.1.|onOff.y|sinSpeDX.P|sinSpeDX.dxCoi.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001571/0.001571, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.488/1.488, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.7/2.7, allocations: 472.7 MB / 0.746 GB, free: 436 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002429/0.002429, allocations: 63.91 kB / 1.07 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9537/0.9562, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed): time 0.2378/1.194, allocations: 205.6 MB / 1.427 GB, free: 15.2 MB / 1.154 GB Notification: Performance of NFInst.instExpressions: time 0.02972/1.224, allocations: 20.26 MB / 1.447 GB, free: 10.89 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00392/1.228, allocations: 39.81 kB / 1.447 GB, free: 10.85 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.004019/1.232, allocations: 1.087 MB / 1.448 GB, free: 9.758 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.009464/1.241, allocations: 2.609 MB / 1.451 GB, free: 7.137 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0101/1.252, allocations: 3.306 MB / 1.454 GB, free: 3.855 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.009647/1.261, allocations: 4.888 MB / 1.459 GB, free: 14.96 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004833/1.266, allocations: 1.987 MB / 1.46 GB, free: 12.92 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006457/1.273, allocations: 1.959 MB / 1.462 GB, free: 10.97 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004595/1.277, allocations: 1.624 MB / 1.464 GB, free: 9.348 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 0.001653/1.279, allocations: 376 kB / 1.464 GB, free: 8.977 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0101/1.289, allocations: 3.536 MB / 1.468 GB, free: 5.434 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 0.002509/1.292, allocations: 1.087 MB / 1.469 GB, free: 4.344 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 0.005332/1.297, allocations: 1.7 MB / 1.471 GB, free: 2.637 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.01791/1.315, allocations: 7.293 MB / 1.478 GB, free: 11.32 MB / 1.201 GB Notification: Performance of FrontEnd - DAE generated: time 9.758e-06/1.315, allocations: 0 / 1.478 GB, free: 11.32 MB / 1.201 GB Notification: Performance of FrontEnd: time 1.964e-06/1.315, allocations: 0 / 1.478 GB, free: 11.32 MB / 1.201 GB Notification: Performance of Transformations before backend: time 0.000212/1.315, allocations: 0 / 1.478 GB, free: 11.32 MB / 1.201 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 308 * Number of variables: 308 Notification: Performance of Generate backend data structure: time 0.01554/1.331, allocations: 3.878 MB / 1.481 GB, free: 7.348 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/1.331, allocations: 15.97 kB / 1.481 GB, free: 7.332 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0224/1.353, allocations: 2.315 MB / 1.484 GB, free: 5.012 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009064/1.362, allocations: 2.955 MB / 1.487 GB, free: 1.988 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006219/1.363, allocations: 342 kB / 1.487 GB, free: 1.609 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009386/1.364, allocations: 140 kB / 1.487 GB, free: 1.473 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01142/1.375, allocations: 3.088 MB / 1.49 GB, free: 14.34 MB / 1.217 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.585e-05/1.375, allocations: 15.88 kB / 1.49 GB, free: 14.33 MB / 1.217 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000491/1.376, allocations: 48 kB / 1.49 GB, free: 14.28 MB / 1.217 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-05/1.376, allocations: 50.39 kB / 1.49 GB, free: 14.23 MB / 1.217 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01555/1.392, allocations: 3.967 MB / 1.494 GB, free: 10.25 MB / 1.217 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02943/1.421, allocations: 11.11 MB / 1.505 GB, free: 14.91 MB / 1.232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01696/1.438, allocations: 4.081 MB / 1.509 GB, free: 10.82 MB / 1.232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007001/1.445, allocations: 1.933 MB / 1.511 GB, free: 8.883 MB / 1.232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008942/1.446, allocations: 0.7567 MB / 1.512 GB, free: 7.965 MB / 1.232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007905/1.454, allocations: 2.28 MB / 1.514 GB, free: 5.672 MB / 1.232 GB Notification: Performance of pre-optimization done (n=107): time 6.352e-06/1.454, allocations: 0 / 1.514 GB, free: 5.672 MB / 1.232 GB Notification: Performance of matching and sorting (n=109): time 0.06462/1.519, allocations: 11.85 MB / 1.525 GB, free: 9.691 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/1.519, allocations: 64.41 kB / 1.525 GB, free: 9.617 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007285/1.526, allocations: 3.356 MB / 1.529 GB, free: 6.242 MB / 1.248 GB Notification: Performance of collectPreVariables (initialization): time 0.0007836/1.527, allocations: 61.7 kB / 1.529 GB, free: 6.176 MB / 1.248 GB Notification: Performance of collectInitialEqns (initialization): time 0.001556/1.528, allocations: 1.035 MB / 1.53 GB, free: 5.129 MB / 1.248 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009099/1.529, allocations: 392.7 kB / 1.53 GB, free: 4.742 MB / 1.248 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001581/1.531, allocations: 326.7 kB / 1.53 GB, free: 4.414 MB / 1.248 GB Notification: Performance of setup shared object (initialization): time 0.0001757/1.531, allocations: 357.9 kB / 1.531 GB, free: 4.059 MB / 1.248 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007643/1.539, allocations: 2.212 MB / 1.533 GB, free: 1.84 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008026/1.547, allocations: 2.355 MB / 1.535 GB, free: 15.44 MB / 1.264 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 1.238/2.785, allocations: 40.67 MB / 1.575 GB, free: 329.2 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/2.785, allocations: 2.844 kB / 1.575 GB, free: 329.2 MB / 1.279 GB Notification: Performance of matching and sorting (n=153) (initialization): time 0.03724/2.822, allocations: 6.712 MB / 1.581 GB, free: 327.6 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001761/2.822, allocations: 116.1 kB / 1.582 GB, free: 327.5 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/2.822, allocations: 3.938 kB / 1.582 GB, free: 327.5 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003179/2.825, allocations: 0.785 MB / 1.582 GB, free: 327.3 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003818/2.829, allocations: 0.5127 MB / 1.583 GB, free: 327.3 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007983/2.837, allocations: 7.174 MB / 1.59 GB, free: 321.1 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005473/2.843, allocations: 364.3 kB / 1.59 GB, free: 321 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003918/2.843, allocations: 78.06 kB / 1.59 GB, free: 320.9 MB / 1.279 GB Warning: Assuming fixed start value for the following 1 variables: sinSpeDX.watVapEva.off:DISCRETE(fixed = true protected = true ) "Signal, true when component is off" type: Boolean Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: sinSpeDX.vol.dynBal.medium.p = sinSpeDX.vol.dynBal.p_start. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008282/2.851, allocations: 3.029 MB / 1.593 GB, free: 319.2 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.006885/2.858, allocations: 2.345 MB / 1.596 GB, free: 317.9 MB / 1.279 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.1149/2.973, allocations: 40.62 MB / 1.635 GB, free: 279.7 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.004e-05/2.973, allocations: 0 / 1.635 GB, free: 279.7 MB / 1.279 GB Notification: Performance of matching and sorting (n=153) (initialization_lambda0): time 0.03783/3.011, allocations: 6.66 MB / 1.642 GB, free: 273.1 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001665/3.011, allocations: 114.8 kB / 1.642 GB, free: 273 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/3.011, allocations: 0 / 1.642 GB, free: 273 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002932/3.014, allocations: 0.7457 MB / 1.643 GB, free: 272.2 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003915/3.018, allocations: 0.507 MB / 1.643 GB, free: 271.7 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00706/3.025, allocations: 6.743 MB / 1.65 GB, free: 264.6 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005288/3.031, allocations: 363.5 kB / 1.65 GB, free: 264.2 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006466/3.031, allocations: 83.91 kB / 1.65 GB, free: 264.1 MB / 1.279 GB Warning: Assuming fixed start value for the following 1 variables: sinSpeDX.watVapEva.off:DISCRETE(fixed = true protected = true ) "Signal, true when component is off" type: Boolean Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: sinSpeDX.vol.dynBal.medium.p = sinSpeDX.vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 19 (sinSpeDX.i_x,$PRE.sinSpeDX.watVapEva.off,$PRE.sinSpeDX.dxCoi.dryCoi.coiCap.checkBoundsTCon[1],$PRE.sinSpeDX.dxCoi.dryCoi.coiCap.checkBoundsTEva[1],$PRE.sinSpeDX.dxCoi.wetCoi.coiCap.checkBoundsTCon[1],$PRE.sinSpeDX.dxCoi.wetCoi.coiCap.checkBoundsTEva[1],sinSpeDX.watVapEva.off,sinSpeDX.dxCoi.dryCoi.coiCap.checkBoundsTCon[1],sinSpeDX.dxCoi.dryCoi.coiCap.checkBoundsTEva[1],sinSpeDX.dxCoi.dryCoi.coiCap.stage,sinSpeDX.dxCoi.wetCoi.shr.on,sinSpeDX.dxCoi.wetCoi.coiCap.checkBoundsTCon[1],sinSpeDX.dxCoi.wetCoi.coiCap.checkBoundsTEva[1],sinSpeDX.dxCoi.wetCoi.coiCap.stage,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 128 * Array equations: 1 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {7} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001031/3.032, allocations: 281.9 kB / 1.65 GB, free: 263.8 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001124/3.034, allocations: 246.2 kB / 1.651 GB, free: 263.7 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03245/3.066, allocations: 5.589 MB / 1.656 GB, free: 258.1 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0323/3.098, allocations: 5.214 MB / 1.661 GB, free: 252.9 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/3.098, allocations: 3.609 kB / 1.661 GB, free: 252.9 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002653/3.101, allocations: 0.812 MB / 1.662 GB, free: 252.1 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001392/3.103, allocations: 35.98 kB / 1.662 GB, free: 252.1 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005052/3.108, allocations: 351.4 kB / 1.662 GB, free: 251.7 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004812/3.108, allocations: 104.9 kB / 1.662 GB, free: 251.6 MB / 1.279 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0197/3.128, allocations: 4.425 MB / 1.667 GB, free: 247.2 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.02093/3.149, allocations: 6.419 MB / 1.673 GB, free: 240.8 MB / 1.279 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.006473/3.155, allocations: 1.92 MB / 1.675 GB, free: 238.8 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.005148/3.161, allocations: 2.349 MB / 1.677 GB, free: 236.5 MB / 1.279 GB Notification: Performance of Backend: time 1.152e-06/3.161, allocations: 0 / 1.677 GB, free: 236.5 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.02531/3.186, allocations: 7.135 MB / 1.684 GB, free: 229.4 MB / 1.279 GB Notification: Performance of SimCode: time 0.01382/3.2, allocations: 5.74 MB / 1.69 GB, free: 223.6 MB / 1.279 GB Notification: Performance of Templates: time 0.1315/3.331, allocations: 87.45 MB / 1.775 GB, free: 136.5 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_AirSource_Examples_SingleSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.AirSource.Examples.SingleSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches