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.007143/0.007143, allocations: 106.2 kB / 15.74 MB, free: 6 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.00152/0.00152, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.353/2.353, allocations: 390.3 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 58.25 kB / 0.9504 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2314, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002695/0.2341, allocations: 1.58 MB / 1.089 GB, free: 432 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009933/0.2351, allocations: 0.5828 MB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.36e-05/0.2352, allocations: 4 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.242e-05/0.2352, allocations: 7.922 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.611e-05/0.2353, allocations: 7.875 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.2356, allocations: 55.81 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.54e-05/0.2357, allocations: 47.91 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.964e-05/0.2358, allocations: 15.98 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.67e-05/0.2359, allocations: 31.84 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.471e-05/0.236, allocations: 27.84 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.236, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.2362, allocations: 47.95 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.619e-05/0.2362, allocations: 19.92 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.139e-05/0.2363, allocations: 31.8 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.2365, allocations: 98.55 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2365, allocations: 3.938 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2365, allocations: 3.938 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.255e-06/0.2365, allocations: 0 / 1.09 GB, free: 15.43 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.0005724/0.2371, allocations: 396 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.2371, allocations: 12.03 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.282e-05/0.2372, allocations: 34.75 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009136/0.2381, allocations: 212.4 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.2382, allocations: 184.8 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.55e-05/0.2383, allocations: 38 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.2383, allocations: 4 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004266/0.2388, allocations: 173.5 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.2388, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.2388, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2388, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006099/0.2394, allocations: 243.7 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008573/0.2403, allocations: 0.5075 MB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005957/0.2409, allocations: 238.3 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/0.2412, allocations: 120.7 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.2412, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.2413, allocations: 38.56 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.2413, allocations: 0 / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0009933/0.2423, allocations: 369.2 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.2423, allocations: 59.34 kB / 1.093 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.2425, allocations: 160 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.2425, allocations: 29.7 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.213e-05/0.2426, allocations: 108.2 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.2426, allocations: 4 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.546e-05/0.2427, allocations: 25.69 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.2428, allocations: 314.8 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.2431, allocations: 115.8 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002834/0.2434, allocations: 115.9 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005516/0.2439, allocations: 204.6 kB / 1.094 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.2439, allocations: 4 kB / 1.094 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006398/0.2446, allocations: 257.3 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.2446, allocations: 4 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.2446, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.2446, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.2449, allocations: 47.94 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.2449, allocations: 7.938 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.2451, allocations: 39.88 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.2451, allocations: 7.922 kB / 1.094 GB, free: 11.2 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.527e-05/0.2452, allocations: 117.8 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.932e-05/0.2452, allocations: 7.906 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.394e-05/0.2452, allocations: 15.86 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2453, allocations: 3.984 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2453, allocations: 3.938 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.2453, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.2455, allocations: 241.6 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2455, allocations: 0 / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001997/0.2457, allocations: 47.92 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2458, allocations: 0 / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.2458, allocations: 7.984 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2458, allocations: 0 / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.2458, allocations: 3.938 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006894/0.2465, allocations: 351.2 kB / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.2465, allocations: 81.02 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.2466, allocations: 4 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.2468, allocations: 43.89 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.094e-05/0.2468, allocations: 3.938 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.2468, allocations: 8 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001001/0.2469, allocations: 126.7 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.3e-07/0.247, allocations: 4 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002601/0.2472, allocations: 12 kB / 1.095 GB, free: 10.04 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.0009911/0.2482, allocations: 0.8918 MB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006581/0.2489, allocations: 235.7 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2489, allocations: 3.938 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.2492, allocations: 123.9 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.2495, allocations: 11.94 kB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003328/0.2528, allocations: 2.326 MB / 1.098 GB, free: 6.355 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.2531, allocations: 0.7 MB / 1.099 GB, free: 5.629 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000103/0.2532, allocations: 23.98 kB / 1.099 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.495e-05/0.2533, allocations: 31.42 kB / 1.099 GB, free: 5.574 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.2533, allocations: 0 / 1.099 GB, free: 5.574 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.2727, allocations: 2.643 MB / 1.102 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.177/7.449, allocations: 8.203 kB / 1.102 GB, free: 3.012 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]