Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007901/0.007901, allocations: 97.3 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 199.4 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.569/2.569, allocations: 437 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.89 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2644, allocations: 151.6 MB / 1.166 GB, free: 7.289 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002581/0.267, allocations: 1.579 MB / 1.168 GB, free: 5.695 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000955/0.268, allocations: 0.5853 MB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.763e-05/0.268, allocations: 3.938 kB / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.965e-05/0.2681, allocations: 7.922 kB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.891e-05/0.2682, allocations: 11.94 kB / 1.168 GB, free: 5.078 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.2685, allocations: 51.83 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.139e-05/0.2686, allocations: 55.77 kB / 1.168 GB, free: 4.973 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.022e-05/0.2687, allocations: 8 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.005e-05/0.2688, allocations: 23.92 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.37e-05/0.2688, allocations: 27.89 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.2689, allocations: 8 kB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.269, allocations: 51.89 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.992e-05/0.2691, allocations: 19.92 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.678e-05/0.2691, allocations: 27.81 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000174/0.2693, allocations: 95.84 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2693, allocations: 4 kB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2693, allocations: 0 / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.2693, allocations: 0 / 1.169 GB, free: 4.711 MB / 0.92 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.0005217/0.2698, allocations: 398.9 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.2699, allocations: 12.03 kB / 1.169 GB, free: 4.262 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.635e-05/0.2699, allocations: 30.75 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008572/0.2708, allocations: 212.5 kB / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.2709, allocations: 199 kB / 1.169 GB, free: 3.785 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.271, allocations: 42 kB / 1.17 GB, free: 3.738 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.271, allocations: 4 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.2714, allocations: 165.5 kB / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.2715, allocations: 0 / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.2715, allocations: 0 / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.2715, allocations: 8 kB / 1.17 GB, free: 3.559 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005881/0.2721, allocations: 231.8 kB / 1.17 GB, free: 3.332 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008245/0.2729, allocations: 0.5155 MB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005515/0.2735, allocations: 234.3 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002855/0.2738, allocations: 124.8 kB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.2738, allocations: 0 / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.2738, allocations: 30.56 kB / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.021e-06/0.2738, allocations: 0 / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0009551/0.2748, allocations: 377.3 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.2748, allocations: 55.34 kB / 1.171 GB, free: 1.922 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.275, allocations: 164.4 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.275, allocations: 25.7 kB / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.272e-05/0.2751, allocations: 108.2 kB / 1.171 GB, free: 1.613 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.2751, allocations: 7.953 kB / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.545e-05/0.2752, allocations: 25.72 kB / 1.172 GB, free: 1.574 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.831e-05/0.2753, allocations: 318.8 kB / 1.172 GB, free: 1.254 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.2756, allocations: 111.8 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002693/0.2758, allocations: 115.9 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.2763, allocations: 204.7 kB / 1.172 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2764, allocations: 0 / 1.172 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005982/0.277, allocations: 257.3 kB / 1.172 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.277, allocations: 4 kB / 1.172 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.277, allocations: 0 / 1.172 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.277, allocations: 0 / 1.172 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.2772, allocations: 51.94 kB / 1.173 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.2772, allocations: 3.938 kB / 1.173 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.2774, allocations: 31.94 kB / 1.173 GB, free: 492 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.855e-05/0.2774, allocations: 7.984 kB / 1.173 GB, free: 484 kB / 0.92 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 8.018e-05/0.2775, allocations: 117.8 kB / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.006e-05/0.2776, allocations: 11.95 kB / 1.173 GB, free: 344 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.206e-05/0.2776, allocations: 23.81 kB / 1.173 GB, free: 320 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2776, allocations: 0 / 1.173 GB, free: 320 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.2776, allocations: 3.938 kB / 1.173 GB, free: 316 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.2776, allocations: 0 / 1.173 GB, free: 316 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002495/0.2779, allocations: 257.2 kB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2779, allocations: 3.938 kB / 1.173 GB, free: 4 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.2781, allocations: 39.98 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2781, allocations: 4 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.2781, allocations: 7.984 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2781, allocations: 0 / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.2781, allocations: 7.875 kB / 1.173 GB, free: 15.94 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006614/0.2788, allocations: 351.2 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.2788, allocations: 85.06 kB / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.2789, allocations: 0 / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.2791, allocations: 39.95 kB / 1.173 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.823e-05/0.2791, allocations: 3.938 kB / 1.173 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.2791, allocations: 7.984 kB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.533e-05/0.2792, allocations: 130.8 kB / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2792, allocations: 0 / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002535/0.2795, allocations: 16 kB / 1.174 GB, free: 15.29 MB / 0.9356 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.0009184/0.2804, allocations: 0.8841 MB / 1.174 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006068/0.281, allocations: 235.7 kB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.281, allocations: 0 / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002892/0.2813, allocations: 119.9 kB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.2816, allocations: 7.938 kB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/0.2847, allocations: 2.35 MB / 1.177 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.285, allocations: 0.6924 MB / 1.178 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.789e-05/0.2851, allocations: 27.98 kB / 1.178 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.364e-05/0.2852, allocations: 27.42 kB / 1.178 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of SimCode: time 4.41e-07/0.2852, allocations: 0 / 1.178 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01609/0.3013, allocations: 2.656 MB / 1.18 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.157/7.459, allocations: 7.734 kB / 1.18 GB, free: 8.254 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 Error: Could not read variable lmtd.y in file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv. Warning: Get data of variable lmtd.y from file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv failed! " Variables in the reference:time,qSta.qNor,fra.y,lmtd.y Variables in the result:time,fra.y,qSta.qNor,coeCha[1],coeCha[2],coeCha[3]