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.001187/0.001187, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.001305/0.001305, allocations: 215.2 kB / 22.25 MB, free: 5.082 MB / 14.72 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 1.325/1.325, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.906/2.906, allocations: 0.49 GB / 0.7951 GB, free: 33.42 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 63.08 kB / 1.154 GB, free: 25.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2857, allocations: 176.1 MB / 1.326 GB, free: 1.965 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002768/0.2885, allocations: 1.611 MB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.2896, allocations: 0.6624 MB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.287e-05/0.2896, allocations: 0 / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.525e-05/0.2897, allocations: 15.86 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.022e-05/0.2898, allocations: 7.938 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.2901, allocations: 63.8 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.2902, allocations: 51.84 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.36e-05/0.2902, allocations: 20.2 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.2903, allocations: 23.92 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.633e-05/0.2904, allocations: 27.91 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.462e-05/0.2904, allocations: 4 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.2906, allocations: 67.88 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.604e-05/0.2906, allocations: 15.92 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.107e-05/0.2907, allocations: 31.8 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.2908, allocations: 103.5 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2908, allocations: 0 / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2908, allocations: 0 / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.2908, allocations: 0 / 1.329 GB, free: 15.25 MB / 1.029 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.0005085/0.2913, allocations: 325.8 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.2914, allocations: 12.02 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.654e-05/0.2914, allocations: 34.75 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009381/0.2924, allocations: 232.4 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.2926, allocations: 148.8 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-05/0.2926, allocations: 67.7 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.2927, allocations: 3.938 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004492/0.2931, allocations: 173.5 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.2931, allocations: 0 / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.2931, allocations: 0 / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.2931, allocations: 11.97 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005685/0.2937, allocations: 231.8 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008204/0.2945, allocations: 498.9 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005491/0.2951, allocations: 234.3 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/0.2954, allocations: 116.8 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.2954, allocations: 0 / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.2954, allocations: 38.56 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.2954, allocations: 0 / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0009837/0.2964, allocations: 373.2 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.2964, allocations: 55.34 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.2966, allocations: 172.1 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.2966, allocations: 29.83 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.93e-05/0.2967, allocations: 100.1 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.2967, allocations: 11.94 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.2967, allocations: 17.7 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2969, allocations: 322.8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.2972, allocations: 111.9 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.2974, allocations: 115.9 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005066/0.2979, allocations: 200.6 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2979, allocations: 0 / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005949/0.2985, allocations: 257.4 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.2985, allocations: 4 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.2985, allocations: 0 / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2986, allocations: 8.031 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.2988, allocations: 39.92 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2988, allocations: 3.938 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.2989, allocations: 35.92 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.2989, allocations: 11.94 kB / 1.332 GB, free: 11.13 MB / 1.029 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 0.0001623/0.2991, allocations: 118.4 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.2991, allocations: 11.91 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.426e-05/0.2992, allocations: 11.97 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-06/0.2992, allocations: 0 / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.2992, allocations: 3.938 kB / 1.332 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2992, allocations: 4 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.2994, allocations: 212.7 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2994, allocations: 0 / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.2996, allocations: 51.84 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2996, allocations: 4 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.2996, allocations: 7.922 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2996, allocations: 0 / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.2996, allocations: 7.938 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006224/0.3002, allocations: 347.3 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.825e-05/0.3003, allocations: 11.97 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.3003, allocations: 4 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.3005, allocations: 35.94 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.442e-05/0.3005, allocations: 3.938 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.3005, allocations: 3.984 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001063/0.3006, allocations: 133.4 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3006, allocations: 4 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002365/0.3009, allocations: 19.94 kB / 1.333 GB, free: 10.08 MB / 1.029 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.0009885/0.3019, allocations: 0.884 MB / 1.334 GB, free: 9.172 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005852/0.3025, allocations: 227.8 kB / 1.334 GB, free: 8.949 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.3025, allocations: 0 / 1.334 GB, free: 8.949 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.3027, allocations: 131.9 kB / 1.335 GB, free: 8.82 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.3029, allocations: 7.516 kB / 1.335 GB, free: 8.816 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.3061, allocations: 2.35 MB / 1.337 GB, free: 6.387 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.3064, allocations: 0.7001 MB / 1.338 GB, free: 5.66 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.708e-05/0.3065, allocations: 27.98 kB / 1.338 GB, free: 5.633 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.764e-05/0.3065, allocations: 27.42 kB / 1.338 GB, free: 5.609 MB / 1.029 GB Notification: Performance of SimCode: time 3.3e-07/0.3065, allocations: 0 / 1.338 GB, free: 5.609 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02665/0.3332, allocations: 2.781 MB / 1.34 GB, free: 2.957 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.616/9.95, allocations: 5.484 kB / 1.34 GB, free: 2.957 MB / 1.029 GB " [Timeout remaining time 290] (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/jenkins1/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: 15.956118412999786]