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.001294/0.001294, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001548/0.001548, allocations: 214.6 kB / 22.25 MB, free: 5.078 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.346/1.346, allocations: 230.6 MB / 256 MB, free: 8.004 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.885/2.885, allocations: 0.49 GB / 0.7951 GB, free: 33.48 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.001936/0.001936, allocations: 65.23 kB / 1.154 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3002, allocations: 176.1 MB / 1.326 GB, free: 1.898 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002999/0.3032, allocations: 1.62 MB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001176/0.3043, allocations: 0.6662 MB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.946e-05/0.3044, allocations: 0 / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.278e-05/0.3044, allocations: 7.938 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.886e-05/0.3045, allocations: 7.875 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003397/0.3049, allocations: 59.86 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.305, allocations: 55.84 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.122e-05/0.3051, allocations: 12.22 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.3052, allocations: 35.84 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.419e-05/0.3053, allocations: 31.84 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.3053, allocations: 4 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001525/0.3054, allocations: 55.95 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.235e-05/0.3055, allocations: 23.91 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.96e-05/0.3055, allocations: 27.81 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.3057, allocations: 107.5 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3057, allocations: 0 / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3057, allocations: 0 / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.3057, allocations: 0 / 1.329 GB, free: 15.18 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.0005408/0.3063, allocations: 329.8 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.3063, allocations: 8.031 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.3063, allocations: 34.75 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009459/0.3073, allocations: 224.4 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.3075, allocations: 152 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.536e-05/0.3076, allocations: 63.72 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.3076, allocations: 0 / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/0.308, allocations: 189.4 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.308, allocations: 0 / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.3081, allocations: 0 / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.3081, allocations: 4 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005746/0.3086, allocations: 231.8 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008371/0.3095, allocations: 487 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005744/0.31, allocations: 246.3 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/0.3103, allocations: 116.8 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.3103, allocations: 0 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.3104, allocations: 34.56 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3104, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0009462/0.3113, allocations: 369.3 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.3114, allocations: 55.34 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.3115, allocations: 171.9 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.3115, allocations: 33.7 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.725e-05/0.3116, allocations: 104.2 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.3116, allocations: 3.953 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.3117, allocations: 21.7 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3118, allocations: 322.8 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.3121, allocations: 107.9 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.3123, allocations: 115.9 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.3128, allocations: 200.7 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.3128, allocations: 0 / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006011/0.3134, allocations: 257.4 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.3135, allocations: 4 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.3135, allocations: 0 / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.3135, allocations: 11.88 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.3137, allocations: 43.95 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.3137, allocations: 7.922 kB / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000158/0.3138, allocations: 31.94 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.3138, allocations: 7.938 kB / 1.332 GB, free: 11.06 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.698e-05/0.3139, allocations: 122.4 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.781e-05/0.314, allocations: 11.91 kB / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.397e-05/0.314, allocations: 7.969 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.314, allocations: 3.984 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.314, allocations: 3.938 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.314, allocations: 4 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002587/0.3143, allocations: 216.7 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3143, allocations: 3.984 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.3145, allocations: 43.92 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3145, allocations: 4 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.3145, allocations: 3.984 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3145, allocations: 0 / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.3145, allocations: 3.938 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006512/0.3151, allocations: 355.2 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.776e-05/0.3152, allocations: 7.953 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.3152, allocations: 0 / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.3154, allocations: 39.97 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.076e-05/0.3154, allocations: 7.922 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.3154, allocations: 3.984 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001083/0.3155, allocations: 133.6 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3155, allocations: 0 / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002367/0.3158, allocations: 15.94 kB / 1.333 GB, free: 10.02 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.0009702/0.3167, allocations: 0.8842 MB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006184/0.3173, allocations: 239.7 kB / 1.334 GB, free: 8.875 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3173, allocations: 0 / 1.334 GB, free: 8.875 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.3176, allocations: 119.9 kB / 1.335 GB, free: 8.758 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.3179, allocations: 9.969 kB / 1.335 GB, free: 8.75 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.3212, allocations: 2.355 MB / 1.337 GB, free: 6.316 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.3215, allocations: 0.6963 MB / 1.338 GB, free: 5.594 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.781e-05/0.3216, allocations: 23.98 kB / 1.338 GB, free: 5.57 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.253e-05/0.3217, allocations: 31.42 kB / 1.338 GB, free: 5.543 MB / 1.029 GB Notification: Performance of SimCode: time 3.7e-07/0.3217, allocations: 0 / 1.338 GB, free: 5.543 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.3504, allocations: 2.791 MB / 1.34 GB, free: 2.887 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.802/10.15, allocations: 4.641 kB / 1.34 GB, free: 2.887 MB / 1.029 GB " [Timeout remaining time 290] (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: 16.118862913921475]