Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_9_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.008196/0.008196, allocations: 95.23 kB / 15.73 MB, free: 6.047 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.001867/0.001867, allocations: 205.8 kB / 16.68 MB, free: 5.973 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.312/2.312, allocations: 390.3 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 62.66 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2371, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002712/0.2399, allocations: 1.576 MB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.241, allocations: 0.5983 MB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.629e-05/0.241, allocations: 0 / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.625e-05/0.2411, allocations: 7.922 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.866e-05/0.2412, allocations: 15.88 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.2415, allocations: 43.88 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.208e-05/0.2416, allocations: 47.84 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.06e-05/0.2417, allocations: 19.98 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.004e-05/0.2418, allocations: 23.91 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.647e-05/0.2419, allocations: 27.86 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.2419, allocations: 4 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.242, allocations: 51.89 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.786e-05/0.2421, allocations: 27.91 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.243e-05/0.2421, allocations: 31.8 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.2423, allocations: 91.84 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2423, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2423, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.2424, allocations: 4 kB / 1.09 GB, free: 15.39 MB / 0.8575 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.0005814/0.2429, allocations: 406.9 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.243, allocations: 8.031 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.287e-05/0.243, allocations: 30.75 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009005/0.2439, allocations: 208.5 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.2441, allocations: 196.7 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.928e-05/0.2442, allocations: 38 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.2442, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004151/0.2446, allocations: 173.5 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.2446, allocations: 0 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.2447, allocations: 0 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.2447, allocations: 0 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000591/0.2453, allocations: 235.8 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008473/0.2461, allocations: 0.5153 MB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005742/0.2467, allocations: 238.3 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.247, allocations: 120.8 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.247, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.2471, allocations: 34.56 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.2471, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0009739/0.248, allocations: 373.2 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.2481, allocations: 59.28 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.2482, allocations: 163.3 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.2483, allocations: 25.7 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.138e-05/0.2483, allocations: 104.2 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.2483, allocations: 7.953 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.132e-05/0.2484, allocations: 25.69 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.792e-05/0.2485, allocations: 314.8 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.2488, allocations: 115.9 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002769/0.2491, allocations: 115.8 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005241/0.2496, allocations: 208.6 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2496, allocations: 0 / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006188/0.2502, allocations: 257.4 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.2503, allocations: 4 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.2503, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.2503, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002102/0.2505, allocations: 51.94 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.2505, allocations: 3.938 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.2507, allocations: 35.89 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.2507, allocations: 7.984 kB / 1.094 GB, free: 11.14 MB / 0.8575 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.392e-05/0.2508, allocations: 121.8 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.004e-05/0.2509, allocations: 7.953 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.2509, allocations: 11.86 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.2509, allocations: 0 / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2509, allocations: 3.938 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.2509, allocations: 3.984 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000245/0.2512, allocations: 245.6 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2512, allocations: 4 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.2514, allocations: 47.86 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2514, allocations: 0 / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.2514, allocations: 3.984 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.998e-06/0.2514, allocations: 0 / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2514, allocations: 7.938 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006583/0.2521, allocations: 347.2 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.2522, allocations: 85.06 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.2522, allocations: 4 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.2524, allocations: 39.95 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.173e-05/0.2524, allocations: 3.938 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.2524, allocations: 4 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.32e-05/0.2525, allocations: 130.5 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2525, allocations: 0 / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002634/0.2528, allocations: 12 kB / 1.095 GB, free: 9.992 MB / 0.8575 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.0009788/0.2538, allocations: 0.8996 MB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00063/0.2544, allocations: 239.7 kB / 1.096 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2545, allocations: 0 / 1.096 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003059/0.2548, allocations: 115.9 kB / 1.096 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.255, allocations: 19.86 kB / 1.096 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.2585, allocations: 2.319 MB / 1.098 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.2588, allocations: 0.6961 MB / 1.099 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000105/0.259, allocations: 27.98 kB / 1.099 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.227e-05/0.2591, allocations: 35.36 kB / 1.099 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.2591, allocations: 0 / 1.099 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.2782, allocations: 2.648 MB / 1.102 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.109/7.387, allocations: 7.344 kB / 1.102 GB, free: 2.957 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv. Warning: Get data of variable lmtd.y from file Buildings_9_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]