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.0007692/0.0007692, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007396/0.0007396, allocations: 169.9 kB / 22.46 MB, free: 2.102 MB / 18.57 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 0.8691/0.8691, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.61/1.61, allocations: 377.8 MB / 0.6221 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 0.981 GB, free: 2.582 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 9.819e-06/1.11e-05, allocations: 2.281 kB / 0.981 GB, free: 2.578 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001735/0.001746, allocations: 1.588 MB / 0.9825 GB, free: 0.9805 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007333/0.002479, allocations: 0.6271 MB / 0.9831 GB, free: 356 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.739e-05/0.002527, allocations: 0 / 0.9831 GB, free: 356 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.759e-05/0.002564, allocations: 3.938 kB / 0.9831 GB, free: 352 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.614e-05/0.002641, allocations: 11.88 kB / 0.9832 GB, free: 340 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.002936, allocations: 59.8 kB / 0.9832 GB, free: 280 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.572e-05/0.003032, allocations: 55.78 kB / 0.9833 GB, free: 224 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 8.189e-05/0.003114, allocations: 15.98 kB / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 9.585e-05/0.003209, allocations: 31.91 kB / 0.9833 GB, free: 176 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.345e-05/0.003253, allocations: 23.91 kB / 0.9833 GB, free: 152 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.371e-05/0.003267, allocations: 4 kB / 0.9833 GB, free: 148 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.003367, allocations: 55.94 kB / 0.9834 GB, free: 92 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 4.761e-05/0.003415, allocations: 15.92 kB / 0.9834 GB, free: 76 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.003573, allocations: 19.92 kB / 0.9834 GB, free: 56 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.003727, allocations: 111.6 kB / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.003729, allocations: 0 / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of FrontEnd: time 7.01e-07/0.00373, allocations: 4 kB / 0.9835 GB, free: 15.94 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.487e-06/0.003733, allocations: 0 / 0.9835 GB, free: 15.94 MB / 0.948 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.0004167/0.00415, allocations: 329.8 kB / 0.9839 GB, free: 15.59 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.004186, allocations: 12.03 kB / 0.9839 GB, free: 15.58 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.803e-05/0.004214, allocations: 34.75 kB / 0.9839 GB, free: 15.54 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005036/0.004717, allocations: 336.2 kB / 0.9842 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.004902, allocations: 154.2 kB / 0.9844 GB, free: 15.03 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.681e-05/0.004969, allocations: 71.88 kB / 0.9844 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.004983, allocations: 8.375 kB / 0.9844 GB, free: 14.94 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.005234, allocations: 205.5 kB / 0.9846 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.005244, allocations: 11.97 kB / 0.9847 GB, free: 14.72 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.005255, allocations: 0 / 0.9847 GB, free: 14.72 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.00526, allocations: 0 / 0.9847 GB, free: 14.72 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002997/0.00556, allocations: 287.6 kB / 0.9849 GB, free: 14.44 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.006102, allocations: 0.5225 MB / 0.9854 GB, free: 13.88 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.006406, allocations: 286.2 kB / 0.9857 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.006554, allocations: 144.7 kB / 0.9858 GB, free: 13.44 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.00657, allocations: 4 kB / 0.9859 GB, free: 13.44 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.006587, allocations: 30.56 kB / 0.9859 GB, free: 13.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 9.81e-07/0.006588, allocations: 0 / 0.9859 GB, free: 13.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0005541/0.007142, allocations: 473 kB / 0.9863 GB, free: 12.93 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.007172, allocations: 51.41 kB / 0.9864 GB, free: 12.87 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.007276, allocations: 168.5 kB / 0.9865 GB, free: 12.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.007287, allocations: 25.7 kB / 0.9866 GB, free: 12.66 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.499e-05/0.007332, allocations: 104.1 kB / 0.9867 GB, free: 12.56 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.679e-05/0.007349, allocations: 7.938 kB / 0.9867 GB, free: 12.55 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.206e-05/0.007391, allocations: 41.69 kB / 0.9867 GB, free: 12.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.438e-05/0.007466, allocations: 326.8 kB / 0.987 GB, free: 12.18 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.007614, allocations: 143.8 kB / 0.9872 GB, free: 12.04 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.007753, allocations: 131.9 kB / 0.9873 GB, free: 11.91 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.008015, allocations: 252.5 kB / 0.9875 GB, free: 11.66 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.008017, allocations: 4 kB / 0.9875 GB, free: 11.65 MB / 0.948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003194/0.008336, allocations: 325.2 kB / 0.9878 GB, free: 11.33 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.008348, allocations: 4 kB / 0.9878 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.008353, allocations: 3.984 kB / 0.9878 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.008364, allocations: 0 / 0.9878 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.008482, allocations: 75.89 kB / 0.9879 GB, free: 11.25 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.008486, allocations: 0 / 0.9879 GB, free: 11.25 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.542e-05/0.008562, allocations: 59.89 kB / 0.988 GB, free: 11.19 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.945e-05/0.008611, allocations: 75.77 kB / 0.988 GB, free: 11.11 MB / 0.948 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.176e-05/0.008673, allocations: 117.8 kB / 0.9882 GB, free: 10.99 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.817e-05/0.008691, allocations: 11.89 kB / 0.9882 GB, free: 10.98 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.676e-05/0.008708, allocations: 15.95 kB / 0.9882 GB, free: 10.96 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.008709, allocations: 0 / 0.9882 GB, free: 10.96 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.008713, allocations: 0 / 0.9882 GB, free: 10.96 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.008715, allocations: 4 kB / 0.9882 GB, free: 10.96 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.008873, allocations: 220.4 kB / 0.9884 GB, free: 10.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.008873, allocations: 0 / 0.9884 GB, free: 10.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.763e-05/0.008961, allocations: 79.81 kB / 0.9885 GB, free: 10.62 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.008962, allocations: 0 / 0.9885 GB, free: 10.62 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.008974, allocations: 11.98 kB / 0.9885 GB, free: 10.61 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.008975, allocations: 4 kB / 0.9885 GB, free: 10.61 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.008976, allocations: 4 kB / 0.9885 GB, free: 10.61 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000349/0.009325, allocations: 423 kB / 0.9889 GB, free: 10.18 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.487e-05/0.00934, allocations: 11.91 kB / 0.9889 GB, free: 10.16 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.009354, allocations: 4 kB / 0.9889 GB, free: 10.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.47e-05/0.009439, allocations: 51.92 kB / 0.989 GB, free: 10.11 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.009462, allocations: 0 / 0.989 GB, free: 10.11 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.066e-05/0.009502, allocations: 71.83 kB / 0.989 GB, free: 10.04 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.967e-05/0.009562, allocations: 131.9 kB / 0.9892 GB, free: 9.91 MB / 0.948 GB Notification: Performance of sort global known variables: time 5.1e-08/0.009562, allocations: 0 / 0.9892 GB, free: 9.91 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001573/0.009719, allocations: 19.94 kB / 0.9892 GB, free: 9.891 MB / 0.948 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.0005395/0.01026, allocations: 0.9542 MB / 0.9901 GB, free: 8.906 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0004755/0.01073, allocations: 299.6 kB / 0.9904 GB, free: 8.613 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.01074, allocations: 0 / 0.9904 GB, free: 8.613 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.01089, allocations: 151.8 kB / 0.9905 GB, free: 8.465 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001563/0.01105, allocations: 12.55 kB / 0.9906 GB, free: 8.457 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.01289, allocations: 2.483 MB / 0.993 GB, free: 5.895 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.355e-05/0.01294, allocations: 91.38 kB / 0.9931 GB, free: 5.781 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0001411/0.01308, allocations: 183.6 kB / 0.9932 GB, free: 5.602 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.864e-05/0.01315, allocations: 48.45 kB / 0.9933 GB, free: 5.555 MB / 0.948 GB Notification: Performance of SimCode: time 5.31e-07/0.01315, allocations: 0 / 0.9933 GB, free: 5.555 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.02927, allocations: 3.411 MB / 0.9966 GB, free: 2.281 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.603/6.633, allocations: 6.875 kB / 0.9966 GB, free: 2.277 MB / 0.948 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 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.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/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] "Error: Could not read variable lmtd.y in file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv. Warning: Get data of variable lmtd.y from file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.494781132787466]