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.001097/0.001097, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.371 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.292/2.292, allocations: 390.2 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002409/0.002409, allocations: 59.91 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6169/0.6193, allocations: 140.4 MB / 0.9497 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003115/0.6225, allocations: 1.569 MB / 0.9513 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009187/0.6234, allocations: 0.5872 MB / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.944e-05/0.6235, allocations: 1.25 kB / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.405e-05/0.6236, allocations: 3.938 kB / 0.9518 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.864e-05/0.6237, allocations: 18.7 kB / 0.9519 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003182/0.624, allocations: 50.62 kB / 0.9519 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.811e-05/0.6241, allocations: 43.83 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.6242, allocations: 23.91 kB / 0.952 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.797e-05/0.6243, allocations: 27.97 kB / 0.952 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.305e-05/0.6244, allocations: 23.64 kB / 0.952 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.6244, allocations: 3.969 kB / 0.952 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.6246, allocations: 51.83 kB / 0.9521 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.6247, allocations: 20.52 kB / 0.9521 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.107e-05/0.6247, allocations: 29.83 kB / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.6249, allocations: 103 kB / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.6249, allocations: 0 / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.6249, allocations: 0 / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.819e-06/0.6249, allocations: 1.594 kB / 0.9522 GB, free: 7.227 MB / 0.7169 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.0005417/0.6255, allocations: 391.3 kB / 0.9526 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.6255, allocations: 8.375 kB / 0.9526 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.443e-05/0.6256, allocations: 44.09 kB / 0.9526 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009314/0.6265, allocations: 207.6 kB / 0.9528 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.6267, allocations: 187.8 kB / 0.953 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.53e-05/0.6267, allocations: 37.56 kB / 0.9531 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.6268, allocations: 6.219 kB / 0.9531 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.6272, allocations: 168.6 kB / 0.9532 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.6272, allocations: 1.406 kB / 0.9532 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.6272, allocations: 4 kB / 0.9532 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.6273, allocations: 1.406 kB / 0.9532 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005891/0.6278, allocations: 241.5 kB / 0.9535 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007275/0.6286, allocations: 0.5044 MB / 0.954 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.6291, allocations: 241.6 kB / 0.9542 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.6294, allocations: 120.1 kB / 0.9543 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.6294, allocations: 1.281 kB / 0.9543 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.6295, allocations: 42.42 kB / 0.9543 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.413e-06/0.6295, allocations: 1.188 kB / 0.9543 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009714/0.6304, allocations: 361.2 kB / 0.9547 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.965e-05/0.6305, allocations: 66.84 kB / 0.9548 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.6306, allocations: 168.5 kB / 0.9549 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.6306, allocations: 25.7 kB / 0.9549 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.6307, allocations: 100 kB / 0.955 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.6307, allocations: 13.95 kB / 0.955 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-05/0.6308, allocations: 17.42 kB / 0.9551 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.003e-05/0.6308, allocations: 322.6 kB / 0.9554 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.6311, allocations: 113.5 kB / 0.9555 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.6314, allocations: 118.5 kB / 0.9556 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000473/0.6319, allocations: 205.3 kB / 0.9558 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.6319, allocations: 0 / 0.9558 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000566/0.6324, allocations: 257.3 kB / 0.956 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.6325, allocations: 5.688 kB / 0.956 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.6325, allocations: 1.375 kB / 0.956 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.6325, allocations: 0 / 0.956 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.6327, allocations: 40.55 kB / 0.9561 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.6327, allocations: 5.312 kB / 0.9561 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.6329, allocations: 37.31 kB / 0.9561 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.6329, allocations: 5.141 kB / 0.9561 GB, free: 4.344 MB / 0.7169 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 6.434e-05/0.633, allocations: 119.3 kB / 0.9562 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/0.633, allocations: 8.312 kB / 0.9562 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.235e-05/0.633, allocations: 14.94 kB / 0.9563 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.6331, allocations: 1 kB / 0.9563 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.6331, allocations: 7.938 kB / 0.9563 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.6331, allocations: 1.156 kB / 0.9563 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.6333, allocations: 246.4 kB / 0.9565 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6333, allocations: 0 / 0.9565 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.6335, allocations: 46.31 kB / 0.9565 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.6335, allocations: 0 / 0.9565 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.6335, allocations: 1.438 kB / 0.9565 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.6335, allocations: 7.984 kB / 0.9566 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6335, allocations: 8.812 kB / 0.9566 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006135/0.6341, allocations: 351.4 kB / 0.9569 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.635e-05/0.6342, allocations: 88.16 kB / 0.957 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.6342, allocations: 1.25 kB / 0.957 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.6344, allocations: 32.59 kB / 0.957 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.6344, allocations: 5.344 kB / 0.957 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.6344, allocations: 9.109 kB / 0.957 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.272e-05/0.6345, allocations: 128.7 kB / 0.9572 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6345, allocations: 0 / 0.9572 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002595/0.6348, allocations: 15.62 kB / 0.9572 GB, free: 3.469 MB / 0.7169 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.0007922/0.6356, allocations: 0.8852 MB / 0.958 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005972/0.6362, allocations: 233.3 kB / 0.9583 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.6362, allocations: 4.062 kB / 0.9583 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000289/0.6365, allocations: 121.4 kB / 0.9584 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.6368, allocations: 10.12 kB / 0.9584 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.6396, allocations: 2.333 MB / 0.9607 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/0.6397, allocations: 0.7055 MB / 0.9614 GB, free: 156 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.656e-05/0.6398, allocations: 16.88 kB / 0.9614 GB, free: 152 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.919e-05/0.6399, allocations: 31.41 kB / 0.9614 GB, free: 124 kB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.6399, allocations: 4 kB / 0.9614 GB, free: 120 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.6582, allocations: 2.599 MB / 0.9639 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.262/7.921, allocations: 6.031 kB / 0.9639 GB, free: 14.75 MB / 0.7325 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]