Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_latest_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.001152/0.001152, 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.001164/0.001164, allocations: 191.6 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.641/2.641, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 65.56 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2684, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002665/0.2711, allocations: 1.544 MB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001144/0.2722, allocations: 0.7535 MB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.25e-05/0.2723, allocations: 0 / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.611e-05/0.2723, allocations: 3.938 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.289e-05/0.2724, allocations: 19.84 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003673/0.2728, allocations: 83.72 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.115e-05/0.2729, allocations: 51.73 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.548e-05/0.273, allocations: 16 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.659e-05/0.2731, allocations: 31.84 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.57e-05/0.2731, allocations: 27.91 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.2732, allocations: 0 / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.2733, allocations: 67.94 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.2733, allocations: 11.94 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.394e-05/0.2734, allocations: 19.86 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001723/0.2736, allocations: 96.03 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2736, allocations: 4 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2736, allocations: 7.938 kB / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.2736, allocations: 0 / 1.066 GB, free: 11.74 MB / 0.8262 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.0005026/0.2741, allocations: 371.2 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2741, allocations: 12.03 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.416e-05/0.2742, allocations: 34.73 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003164/0.2745, allocations: 24.81 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.2746, allocations: 172.3 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.2747, allocations: 12.31 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.2747, allocations: 384 / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.2749, allocations: 85.75 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-06/0.275, allocations: 0 / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.275, allocations: 0 / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.275, allocations: 0 / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002751/0.2753, allocations: 71.88 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004813/0.2757, allocations: 312.8 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.276, allocations: 78.47 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.2762, allocations: 36.94 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.2762, allocations: 3.984 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.2762, allocations: 30.56 kB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.2762, allocations: 0 / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0006999/0.2769, allocations: 141.5 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.277, allocations: 59.34 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.2771, allocations: 109.8 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.2771, allocations: 29.7 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.306e-05/0.2772, allocations: 96.06 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.643e-05/0.2772, allocations: 15.84 kB / 1.068 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.319e-05/0.2773, allocations: 21.7 kB / 1.068 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.2775, allocations: 318.8 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.2776, allocations: 27.98 kB / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.2778, allocations: 35.97 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003759/0.2782, allocations: 64.81 kB / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2782, allocations: 0 / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004608/0.2787, allocations: 109.5 kB / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.2787, allocations: 8 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2787, allocations: 4 kB / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2788, allocations: 0 / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.2789, allocations: 15.97 kB / 1.069 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.279, allocations: 0 / 1.069 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.2791, allocations: 4 kB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.2791, allocations: 7.984 kB / 1.069 GB, free: 9.242 MB / 0.8262 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.794e-05/0.2792, allocations: 117.8 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.2793, allocations: 7.906 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.55e-05/0.2793, allocations: 15.89 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2793, allocations: 0 / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2794, allocations: 0 / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2794, allocations: 0 / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002697/0.2796, allocations: 197.5 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.2797, allocations: 4 kB / 1.069 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.2798, allocations: 11.98 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.2798, allocations: 0 / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.2799, allocations: 11.98 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.2799, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2799, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004322/0.2803, allocations: 203.4 kB / 1.069 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.769e-05/0.2804, allocations: 85.02 kB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.2804, allocations: 7.938 kB / 1.069 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.2805, allocations: 4 kB / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.381e-05/0.2806, allocations: 7.984 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.2806, allocations: 0 / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.773e-05/0.2806, allocations: 95.64 kB / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2806, allocations: 4 kB / 1.069 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002648/0.2809, allocations: 24 kB / 1.069 GB, free: 8.363 MB / 0.8262 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.0006861/0.2816, allocations: 0.7716 MB / 1.07 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003378/0.2819, allocations: 75.94 kB / 1.07 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.282, allocations: 0 / 1.07 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.2821, allocations: 36.11 kB / 1.07 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.2824, allocations: 8.422 kB / 1.07 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005573/0.283, allocations: 204.7 kB / 1.07 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.2832, allocations: 0.6885 MB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.893e-05/0.2833, allocations: 15.98 kB / 1.071 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.484e-05/0.2834, allocations: 19.42 kB / 1.071 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2834, allocations: 0 / 1.071 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.3002, allocations: 2.123 MB / 1.073 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.177/7.477, allocations: 13.94 kB / 1.073 GB, free: 4.422 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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