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.001441/0.001441, allocations: 107.7 kB / 18.95 MB, free: 2.688 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.001638/0.001638, allocations: 219.4 kB / 22.25 MB, free: 5.238 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.344/1.344, allocations: 230.6 MB / 256 MB, free: 7.777 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.928/2.928, allocations: 0.49 GB / 0.7951 GB, free: 35.56 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.001943/0.001943, allocations: 70.94 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.32, allocations: 176.1 MB / 1.326 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002741/0.3228, allocations: 1.591 MB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3238, allocations: 0.6117 MB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.228e-05/0.3239, allocations: 0 / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.03e-05/0.3239, allocations: 7.922 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.798e-05/0.324, allocations: 15.86 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.3243, allocations: 59.81 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.3244, allocations: 55.78 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.267e-05/0.3245, allocations: 20.27 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.3246, allocations: 23.92 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.515e-05/0.3247, allocations: 27.91 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.3247, allocations: 7.938 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.3248, allocations: 55.94 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.191e-05/0.3249, allocations: 23.92 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.891e-05/0.3249, allocations: 27.8 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.3251, allocations: 103.5 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3251, allocations: 0 / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3251, allocations: 0 / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.3251, allocations: 3.938 kB / 1.328 GB, free: 14.85 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.0005234/0.3257, allocations: 325.8 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.3257, allocations: 8.031 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.252e-05/0.3257, allocations: 38.75 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001012/0.3268, allocations: 216.5 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.327, allocations: 151.7 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.3271, allocations: 67.7 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.3271, allocations: 3.938 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004355/0.3276, allocations: 169.5 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.3276, allocations: 0 / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.3276, allocations: 8 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.3276, allocations: 0 / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006161/0.3282, allocations: 235.7 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008713/0.3291, allocations: 486.8 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006066/0.3297, allocations: 238.3 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.33, allocations: 120.8 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.33, allocations: 4 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.33, allocations: 34.56 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.33, allocations: 0 / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.001024/0.331, allocations: 373.3 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.3311, allocations: 59.34 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.3312, allocations: 173.5 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.3313, allocations: 25.7 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.3313, allocations: 104.1 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.3314, allocations: 7.938 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.315e-05/0.3314, allocations: 21.7 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.3315, allocations: 322.8 kB / 1.331 GB, free: 11.52 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.3318, allocations: 115.9 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002843/0.3321, allocations: 107.9 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.3327, allocations: 200.7 kB / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3327, allocations: 0 / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006373/0.3333, allocations: 257.3 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3333, allocations: 7.984 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.3333, allocations: 8.031 kB / 1.332 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3333, allocations: 0 / 1.332 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.3336, allocations: 39.92 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.3336, allocations: 3.938 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.3337, allocations: 35.94 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.3337, allocations: 7.984 kB / 1.332 GB, free: 10.74 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.617e-05/0.3338, allocations: 118.4 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.89e-05/0.3339, allocations: 11.91 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.113e-05/0.3339, allocations: 7.969 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3339, allocations: 7.938 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.3339, allocations: 3.938 kB / 1.332 GB, free: 10.58 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.3339, allocations: 0 / 1.332 GB, free: 10.58 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002545/0.3342, allocations: 204.7 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3342, allocations: 0 / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.3344, allocations: 47.92 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3344, allocations: 0 / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.3344, allocations: 3.984 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3344, allocations: 0 / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3344, allocations: 3.938 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006987/0.3351, allocations: 359.2 kB / 1.333 GB, free: 9.918 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.184e-05/0.3351, allocations: 7.953 kB / 1.333 GB, free: 9.91 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.3351, allocations: 3.984 kB / 1.333 GB, free: 9.906 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.3353, allocations: 35.97 kB / 1.333 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.3354, allocations: 7.922 kB / 1.333 GB, free: 9.863 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.3354, allocations: 4 kB / 1.333 GB, free: 9.859 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001138/0.3355, allocations: 137.1 kB / 1.333 GB, free: 9.727 MB / 1.029 GB Notification: Performance of sort global known variables: time 6.1e-08/0.3355, allocations: 0 / 1.333 GB, free: 9.727 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002461/0.3357, allocations: 19.94 kB / 1.333 GB, free: 9.707 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.001045/0.3368, allocations: 0.884 MB / 1.334 GB, free: 8.797 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006546/0.3374, allocations: 231.8 kB / 1.334 GB, free: 8.57 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3374, allocations: 0 / 1.334 GB, free: 8.57 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.3378, allocations: 123.9 kB / 1.334 GB, free: 8.449 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.338, allocations: 7.922 kB / 1.334 GB, free: 8.441 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.3415, allocations: 2.344 MB / 1.337 GB, free: 6.02 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.615e-05/0.3416, allocations: 83.39 kB / 1.337 GB, free: 5.914 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.588e-05/0.3417, allocations: 27.98 kB / 1.337 GB, free: 5.887 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.818e-05/0.3418, allocations: 31.41 kB / 1.337 GB, free: 5.859 MB / 1.029 GB Notification: Performance of SimCode: time 4.51e-07/0.3418, allocations: 112 / 1.337 GB, free: 5.859 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02922/0.371, allocations: 3.298 MB / 1.34 GB, free: 2.699 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.69, allocations: 12.34 kB / 1.34 GB, free: 2.695 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: 16.673303431016393]