Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.LMTDStar,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",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.008062/0.008062, allocations: 101 kB / 15.73 MB, free: 6.059 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.001997/0.001997, allocations: 194.7 kB / 16.68 MB, free: 5.969 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.701/2.701, allocations: 469.8 MB / 0.7425 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 75.88 kB / 1.065 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7051/0.7071, allocations: 159.1 MB / 1.22 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002754/0.7099, allocations: 1.531 MB / 1.222 GB, free: 488 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001356/0.7112, allocations: 0.7566 MB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.667e-05/0.7113, allocations: 0 / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.864e-05/0.7114, allocations: 7.922 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.923e-05/0.7115, allocations: 15.88 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.7119, allocations: 83.66 kB / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.712, allocations: 63.7 kB / 1.223 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.7121, allocations: 4 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.829e-05/0.7122, allocations: 27.92 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.015e-05/0.7123, allocations: 27.86 kB / 1.223 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.7123, allocations: 7.984 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.7125, allocations: 67.94 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.635e-05/0.7125, allocations: 7.938 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.51e-05/0.7126, allocations: 23.88 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.7128, allocations: 99.34 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.7128, allocations: 0 / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.302e-06/0.7128, allocations: 0 / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.7128, allocations: 0 / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005395/0.7134, allocations: 383 kB / 1.223 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.7134, allocations: 8.031 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.415e-05/0.7135, allocations: 38.75 kB / 1.223 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003001/0.7138, allocations: 28.84 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.7139, allocations: 176.2 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.714, allocations: 384 / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.714, allocations: 4.375 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.7143, allocations: 89.69 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.7143, allocations: 0 / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.7143, allocations: 3.984 kB / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.7143, allocations: 4 kB / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.7146, allocations: 59.95 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005536/0.7152, allocations: 324.8 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.7155, allocations: 74.48 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.7156, allocations: 40.92 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.7157, allocations: 4 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.7157, allocations: 30.56 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.7157, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0005583/0.7163, allocations: 141.5 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/0.7163, allocations: 51.41 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.7164, allocations: 121.8 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.7165, allocations: 25.7 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/0.7165, allocations: 96.06 kB / 1.224 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.7166, allocations: 7.891 kB / 1.224 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.092e-05/0.7166, allocations: 25.64 kB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.7168, allocations: 322.8 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.7169, allocations: 31.97 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.717, allocations: 35.97 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.7173, allocations: 64.81 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.7173, allocations: 8 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000329/0.7177, allocations: 101.6 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.7177, allocations: 5.719 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.7177, allocations: 0 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.7177, allocations: 0 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.7179, allocations: 27.92 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.7179, allocations: 4 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.907e-05/0.718, allocations: 7.984 kB / 1.225 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.718, allocations: 4 kB / 1.225 GB, free: 12.75 MB / 0.9512 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 (3): * Single equations (assignments): 3 * 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 9.652e-05/0.7181, allocations: 113.8 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.328e-05/0.7181, allocations: 7.953 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.478e-05/0.7182, allocations: 11.89 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.7182, allocations: 4 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.7183, allocations: 4 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.7183, allocations: 0 / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.7185, allocations: 185.6 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.7185, allocations: 0 / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.7186, allocations: 19.97 kB / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.7186, allocations: 0 / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.7187, allocations: 0 / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.738e-06/0.7187, allocations: 4 kB / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.7187, allocations: 0 / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004041/0.7191, allocations: 215.6 kB / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.7192, allocations: 85.05 kB / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.7192, allocations: 3.984 kB / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.7193, allocations: 4 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.7193, allocations: 7.984 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.7194, allocations: 4 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.153e-05/0.7194, allocations: 91.27 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7194, allocations: 0 / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002806/0.7197, allocations: 27.94 kB / 1.226 GB, free: 11.88 MB / 0.9512 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 (3): * Single equations (assignments): 3 * 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.0008025/0.7205, allocations: 0.7674 MB / 1.227 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003426/0.7209, allocations: 67.88 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.7209, allocations: 4 kB / 1.227 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.7211, allocations: 43.95 kB / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.7214, allocations: 7.938 kB / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006482/0.722, allocations: 216.5 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.7224, allocations: 0.6884 MB / 1.228 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.319e-05/0.7225, allocations: 15.98 kB / 1.228 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.907e-05/0.7226, allocations: 27.42 kB / 1.228 GB, free: 9.953 MB / 0.9512 GB Notification: Performance of SimCode: time 2.6e-07/0.7226, allocations: 0 / 1.228 GB, free: 9.953 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.7467, allocations: 2.146 MB / 1.23 GB, free: 7.906 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.718/8.465, allocations: 7.844 kB / 1.23 GB, free: 7.902 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=3600.000000 File[1204]=2249.280000 " Variables in the reference:time,lmtdSta.lmtdSta,TIn.y,TOut.y Variables in the result:time,TIn.y,TOut.y,lmtdSta.lmtdSta,TIn.amplitude,TIn.f