Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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.00135/0.00135, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002035/0.002035, allocations: 210.8 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.364/1.364, allocations: 230.6 MB / 256 MB, free: 7.828 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 2.897/2.897, allocations: 0.4892 GB / 0.7943 GB, free: 35.71 MB / 0.6231 GB " [Timeout remaining time 177] 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.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",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.002006/0.002006, allocations: 67.34 kB / 1.153 GB, free: 25.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3176, allocations: 176.1 MB / 1.325 GB, free: 2.398 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002743/0.3203, allocations: 1.59 MB / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.3215, allocations: 0.6118 MB / 1.327 GB, free: 192 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.3215, allocations: 4 kB / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.241e-05/0.3216, allocations: 7.922 kB / 1.327 GB, free: 180 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.613e-05/0.3216, allocations: 3.938 kB / 1.327 GB, free: 176 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.322, allocations: 67.8 kB / 1.327 GB, free: 108 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.3221, allocations: 47.84 kB / 1.327 GB, free: 60 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.301e-05/0.3222, allocations: 12.28 kB / 1.327 GB, free: 48 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.3223, allocations: 39.78 kB / 1.327 GB, free: 8 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.698e-05/0.3224, allocations: 27.97 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.3224, allocations: 4 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.3225, allocations: 51.83 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.3226, allocations: 19.92 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.985e-05/0.3226, allocations: 27.84 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.3228, allocations: 99.56 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.3228, allocations: 4 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of FrontEnd: time 9.12e-07/0.3228, allocations: 3.938 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.3228, allocations: 4 kB / 1.328 GB, free: 15.77 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005599/0.3234, allocations: 317.8 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3234, allocations: 12.03 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.739e-05/0.3235, allocations: 38.73 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009382/0.3244, allocations: 216.5 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.3247, allocations: 152.4 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.071e-05/0.3247, allocations: 71.64 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.3248, allocations: 4 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.3252, allocations: 177.5 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3252, allocations: 4 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.3252, allocations: 0 / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3252, allocations: 0 / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005986/0.3258, allocations: 243.7 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008526/0.3267, allocations: 474.9 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005799/0.3272, allocations: 234.3 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000289/0.3275, allocations: 124.7 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.3275, allocations: 0 / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.3276, allocations: 38.55 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.3276, allocations: 0 / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0009653/0.3286, allocations: 369.4 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.3286, allocations: 55.34 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.3288, allocations: 176.4 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.3288, allocations: 25.7 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.814e-05/0.3289, allocations: 100.1 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.3289, allocations: 7.953 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/0.3289, allocations: 17.7 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3291, allocations: 322.8 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.3294, allocations: 119.8 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.3296, allocations: 111.9 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/0.3302, allocations: 200.7 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3302, allocations: 0 / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006118/0.3308, allocations: 257.4 kB / 1.331 GB, free: 11.77 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3308, allocations: 8.031 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.3308, allocations: 3.938 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.3308, allocations: 0 / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.331, allocations: 39.92 kB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.331, allocations: 7.938 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.3312, allocations: 39.92 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.3312, allocations: 3.938 kB / 1.331 GB, free: 11.67 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 0.0001012/0.3313, allocations: 122.4 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.918e-05/0.3313, allocations: 19.83 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.75e-05/0.3314, allocations: 11.97 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3314, allocations: 0 / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3314, allocations: 3.938 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3314, allocations: 0 / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000262/0.3316, allocations: 204.7 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3316, allocations: 0 / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.3318, allocations: 43.92 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3318, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.3318, allocations: 7.984 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3318, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3318, allocations: 3.938 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006688/0.3325, allocations: 351.3 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.402e-05/0.3325, allocations: 7.953 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.3325, allocations: 0 / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.3327, allocations: 51.89 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.3328, allocations: 3.938 kB / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.3328, allocations: 0 / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001165/0.3329, allocations: 133.9 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3329, allocations: 0 / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002593/0.3332, allocations: 19.94 kB / 1.332 GB, free: 10.63 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.001039/0.3342, allocations: 0.8842 MB / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006452/0.3348, allocations: 239.7 kB / 1.333 GB, free: 9.488 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3348, allocations: 0 / 1.333 GB, free: 9.488 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002987/0.3351, allocations: 123.9 kB / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.3354, allocations: 13.14 kB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.3389, allocations: 2.346 MB / 1.336 GB, free: 6.93 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.703e-05/0.339, allocations: 84.94 kB / 1.336 GB, free: 6.824 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.883e-05/0.339, allocations: 20 kB / 1.336 GB, free: 6.805 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.586e-05/0.3391, allocations: 31.41 kB / 1.336 GB, free: 6.777 MB / 1.029 GB Notification: Performance of SimCode: time 5.71e-07/0.3391, allocations: 3.938 kB / 1.336 GB, free: 6.773 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03128/0.3704, allocations: 3.28 MB / 1.339 GB, free: 3.633 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.95, allocations: 2.031 kB / 1.339 GB, free: 3.633 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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: 17.108890870120376]