Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.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.001872/0.001872, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002376/0.002376, allocations: 214 kB / 22.24 MB, free: 5.262 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.442/1.442, allocations: 230.6 MB / 256 MB, free: 7.785 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.205/3.205, allocations: 0.49 GB / 0.7951 GB, free: 35.48 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.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",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.002048/0.002048, allocations: 68.41 kB / 1.154 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3486, allocations: 176.1 MB / 1.326 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002831/0.3514, allocations: 1.451 MB / 1.327 GB, free: 0 / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008882/0.3523, allocations: 435 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.11e-05/0.3523, allocations: 3.938 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.451e-05/0.3524, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.508e-05/0.3524, allocations: 7.875 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002281/0.3526, allocations: 23.91 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001113/0.3527, allocations: 31.86 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.895e-05/0.3528, allocations: 7.984 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.3529, allocations: 16 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.353, allocations: 19.91 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.353, allocations: 7.938 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.09e-05/0.353, allocations: 4 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.3531, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.297e-05/0.3531, allocations: 11.94 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.3532, allocations: 28.12 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3532, allocations: 0 / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3532, allocations: 0 / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.3532, allocations: 0 / 1.328 GB, free: 15.41 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004154/0.3536, allocations: 263.3 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.3537, allocations: 12.03 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.3537, allocations: 34.75 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.3539, allocations: 28.81 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.3541, allocations: 110.5 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.282e-06/0.3541, allocations: 384 / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.3541, allocations: 4.375 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.3542, allocations: 45.8 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.3543, allocations: 0 / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.3543, allocations: 7.938 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.3543, allocations: 0 / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.017e-05/0.3543, allocations: 15.98 kB / 1.328 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000347/0.3547, allocations: 228 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.918e-05/0.3548, allocations: 26.58 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.755e-05/0.3548, allocations: 20.91 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.3549, allocations: 0 / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.3549, allocations: 38.5 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.3549, allocations: 0 / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002322/0.3551, allocations: 57.67 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.3552, allocations: 55.53 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.754e-05/0.3553, allocations: 109.8 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.3553, allocations: 25.7 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.399e-05/0.3553, allocations: 88.14 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.3554, allocations: 7.891 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.3554, allocations: 13.72 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3555, allocations: 322.8 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.029e-05/0.3556, allocations: 8 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.591e-05/0.3556, allocations: 19.86 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.3e-05/0.3557, allocations: 24.92 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3557, allocations: 0 / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001368/0.3558, allocations: 57.62 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.3558, allocations: 4 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.3558, allocations: 0 / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3559, allocations: 0 / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.617e-05/0.3559, allocations: 4 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.3559, allocations: 0 / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.652e-05/0.356, allocations: 8.016 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-06/0.356, allocations: 4 kB / 1.329 GB, free: 13.61 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 9.016e-05/0.3561, allocations: 114.3 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.3561, allocations: 11.88 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.365e-05/0.3561, allocations: 3.625 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3561, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3561, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3561, allocations: 4 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.3563, allocations: 128.7 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3563, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.164e-05/0.3563, allocations: 7.984 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.3563, allocations: 7.984 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-06/0.3563, allocations: 0 / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3563, allocations: 4 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3563, allocations: 4 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.3565, allocations: 147.5 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.105e-05/0.3565, allocations: 7.938 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.3565, allocations: 4 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.693e-05/0.3566, allocations: 0 / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.831e-05/0.3566, allocations: 0 / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.3566, allocations: 8.031 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.581e-05/0.3567, allocations: 91.2 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3567, allocations: 0 / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000212/0.3569, allocations: 4 kB / 1.33 GB, free: 12.99 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005002/0.3574, allocations: 0.6851 MB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001284/0.3575, allocations: 19.98 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3575, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.513e-05/0.3576, allocations: 16.03 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.3578, allocations: 6.656 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.359, allocations: 1.223 MB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.371e-05/0.3591, allocations: 63.34 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.732e-05/0.3591, allocations: 4.078 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.987e-05/0.3591, allocations: 11.44 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3591, allocations: 0 / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02896/0.3881, allocations: 1.765 MB / 1.334 GB, free: 9.215 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.06, allocations: 6.578 kB / 1.334 GB, free: 9.211 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable kMinU.u in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv. Warning: Get data of variable kMinU.u from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.912514733005082]