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.001534/0.001534, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001867/0.001867, allocations: 219 kB / 23.03 MB, free: 4.922 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.412/1.412, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.052/3.052, allocations: 0.49 GB / 0.7959 GB, free: 35.55 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="cs",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.002014/0.002014, allocations: 60.44 kB / 1.155 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3139, allocations: 176.1 MB / 1.327 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002889/0.3168, allocations: 1.591 MB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.3179, allocations: 0.6156 MB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.101e-05/0.318, allocations: 0 / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.472e-05/0.318, allocations: 7.922 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.97e-05/0.3181, allocations: 11.88 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003237/0.3184, allocations: 59.86 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.3185, allocations: 47.86 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.276e-05/0.3186, allocations: 20.25 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.3187, allocations: 35.8 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.301e-05/0.3188, allocations: 19.92 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.3188, allocations: 7.984 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001381/0.319, allocations: 59.94 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.77e-05/0.319, allocations: 23.92 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.399e-05/0.3191, allocations: 27.8 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.3193, allocations: 99.56 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3193, allocations: 0 / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3193, allocations: 0 / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.3193, allocations: 0 / 1.329 GB, free: 14.89 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.0005571/0.3198, allocations: 333.7 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.3199, allocations: 8.031 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.7e-05/0.3199, allocations: 192 / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.145e-05/0.3199, allocations: 38.75 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009876/0.3209, allocations: 216.5 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.3211, allocations: 150.9 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.139e-05/0.3212, allocations: 67.52 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.3212, allocations: 4 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.3217, allocations: 173.5 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.3217, allocations: 3.938 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.3217, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.3217, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006022/0.3223, allocations: 235.8 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009327/0.3232, allocations: 482.9 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006127/0.3238, allocations: 238.3 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.3241, allocations: 120.8 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.3242, allocations: 0 / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.3242, allocations: 34.56 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.3242, allocations: 0 / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.001008/0.3252, allocations: 377.3 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.3252, allocations: 55.34 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.3254, allocations: 174.2 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.3254, allocations: 25.7 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.518e-05/0.3255, allocations: 100.1 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.3255, allocations: 11.94 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.749e-05/0.3256, allocations: 17.7 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3257, allocations: 322.8 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.326, allocations: 115.9 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.3263, allocations: 107.9 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005271/0.3268, allocations: 200.7 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3268, allocations: 4 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006546/0.3275, allocations: 249.4 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3275, allocations: 11.98 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.3275, allocations: 4.031 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.3275, allocations: 3.938 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.3277, allocations: 47.8 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3278, allocations: 0 / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.3279, allocations: 39.94 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.3279, allocations: 3.984 kB / 1.333 GB, free: 10.78 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.000107/0.328, allocations: 124.1 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.371e-05/0.3281, allocations: 15.89 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.834e-05/0.3281, allocations: 11.97 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3281, allocations: 3.938 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3281, allocations: 0 / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3281, allocations: 0 / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.3284, allocations: 204.7 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3284, allocations: 0 / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001975/0.3286, allocations: 47.92 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3286, allocations: 0 / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.3286, allocations: 3.984 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3286, allocations: 7.938 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3286, allocations: 0 / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006936/0.3293, allocations: 355.2 kB / 1.334 GB, free: 9.949 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.3293, allocations: 7.953 kB / 1.334 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.3294, allocations: 0 / 1.334 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.3295, allocations: 39.91 kB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.3296, allocations: 7.984 kB / 1.334 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.3296, allocations: 0 / 1.334 GB, free: 9.895 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001107/0.3297, allocations: 133.4 kB / 1.334 GB, free: 9.766 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3297, allocations: 0 / 1.334 GB, free: 9.766 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002629/0.33, allocations: 19.94 kB / 1.334 GB, free: 9.746 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.001032/0.331, allocations: 0.884 MB / 1.335 GB, free: 8.836 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006566/0.3317, allocations: 239.7 kB / 1.335 GB, free: 8.602 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3317, allocations: 0 / 1.335 GB, free: 8.602 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003142/0.332, allocations: 119.9 kB / 1.335 GB, free: 8.484 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.3322, allocations: 17.58 kB / 1.335 GB, free: 8.469 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/0.3357, allocations: 2.347 MB / 1.337 GB, free: 6.043 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.319e-05/0.3358, allocations: 83.38 kB / 1.338 GB, free: 5.938 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001011/0.3359, allocations: 20 kB / 1.338 GB, free: 5.918 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.848e-05/0.336, allocations: 35.41 kB / 1.338 GB, free: 5.887 MB / 1.029 GB Notification: Performance of SimCode: time 6.71e-07/0.336, allocations: 0 / 1.338 GB, free: 5.887 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.3601, allocations: 2.917 MB / 1.34 GB, free: 3.129 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.56, allocations: 12.05 kB / 1.34 GB, free: 3.117 MB / 1.029 GB " [Timeout remaining time 288] (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: 18.018024423043244]