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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.004695/0.004695, allocations: 98.34 kB / 15.73 MB, free: 6.008 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.00129/0.00129, allocations: 195.6 kB / 16.68 MB, free: 5.934 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 482.4 MB / 0.7548 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 64.77 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2765, allocations: 162.2 MB / 1.241 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002668/0.2792, allocations: 1.533 MB / 1.243 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001183/0.2804, allocations: 0.7533 MB / 1.244 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.802e-05/0.2804, allocations: 0 / 1.244 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.691e-05/0.2804, allocations: 3.938 kB / 1.244 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.156e-05/0.2805, allocations: 19.84 kB / 1.244 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003324/0.2809, allocations: 87.66 kB / 1.244 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.895e-05/0.281, allocations: 47.8 kB / 1.244 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.173e-05/0.2811, allocations: 23.86 kB / 1.244 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.329e-05/0.2812, allocations: 27.97 kB / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.634e-05/0.2812, allocations: 27.8 kB / 1.244 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.2813, allocations: 4 kB / 1.244 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.2814, allocations: 67.94 kB / 1.244 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.901e-05/0.2814, allocations: 7.984 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.589e-05/0.2815, allocations: 19.88 kB / 1.244 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.2817, allocations: 99.91 kB / 1.244 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2817, allocations: 0 / 1.244 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2817, allocations: 4 kB / 1.244 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.017e-06/0.2817, allocations: 0 / 1.244 GB, free: 6.551 MB / 0.9669 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.0005056/0.2822, allocations: 391 kB / 1.244 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2823, allocations: 12.03 kB / 1.245 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.787e-05/0.2823, allocations: 34.75 kB / 1.245 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.2826, allocations: 20.91 kB / 1.245 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.2828, allocations: 180.3 kB / 1.245 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.2828, allocations: 4.375 kB / 1.245 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.2828, allocations: 4.375 kB / 1.245 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002606/0.2831, allocations: 81.7 kB / 1.245 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.2831, allocations: 0 / 1.245 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.2831, allocations: 4 kB / 1.245 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.2831, allocations: 0 / 1.245 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002878/0.2834, allocations: 63.94 kB / 1.245 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005081/0.2839, allocations: 324.8 kB / 1.245 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.2842, allocations: 78.45 kB / 1.245 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.2844, allocations: 44.92 kB / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.2844, allocations: 0 / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.2844, allocations: 30.56 kB / 1.245 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.2844, allocations: 0 / 1.245 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005516/0.285, allocations: 133.6 kB / 1.245 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.285, allocations: 59.39 kB / 1.246 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.2851, allocations: 113.8 kB / 1.246 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.2852, allocations: 25.7 kB / 1.246 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.555e-05/0.2852, allocations: 96.08 kB / 1.246 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.2853, allocations: 7.938 kB / 1.246 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.775e-05/0.2853, allocations: 25.7 kB / 1.246 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.2855, allocations: 322.7 kB / 1.246 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.2856, allocations: 31.97 kB / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.2858, allocations: 35.97 kB / 1.246 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/0.286, allocations: 64.81 kB / 1.246 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2861, allocations: 0 / 1.246 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003483/0.2864, allocations: 101.6 kB / 1.246 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2864, allocations: 7.938 kB / 1.246 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.2864, allocations: 0 / 1.246 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2865, allocations: 8 kB / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.2866, allocations: 15.97 kB / 1.246 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.2866, allocations: 7.875 kB / 1.246 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.831e-05/0.2867, allocations: 7.984 kB / 1.246 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.2867, allocations: 4 kB / 1.246 GB, free: 4.023 MB / 0.9669 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.37e-05/0.2868, allocations: 114.3 kB / 1.246 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.2869, allocations: 7.953 kB / 1.246 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.2869, allocations: 19.89 kB / 1.246 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.2869, allocations: 0 / 1.246 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.2869, allocations: 0 / 1.246 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-06/0.2869, allocations: 0 / 1.246 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.2872, allocations: 189.5 kB / 1.247 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2872, allocations: 4 kB / 1.247 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.2873, allocations: 15.97 kB / 1.247 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.2873, allocations: 4 kB / 1.247 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.2873, allocations: 4 kB / 1.247 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2873, allocations: 4 kB / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2873, allocations: 0 / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.2878, allocations: 203.3 kB / 1.247 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.2878, allocations: 81.11 kB / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.2878, allocations: 4 kB / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.288, allocations: 12.36 kB / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.288, allocations: 0 / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.288, allocations: 7.984 kB / 1.247 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.408e-05/0.2881, allocations: 91.7 kB / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2881, allocations: 0 / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002767/0.2884, allocations: 31.88 kB / 1.247 GB, free: 3.145 MB / 0.9669 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.0007758/0.2892, allocations: 0.7592 MB / 1.248 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003449/0.2895, allocations: 79.88 kB / 1.248 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2895, allocations: 0 / 1.248 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.2897, allocations: 35.97 kB / 1.248 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.29, allocations: 11.92 kB / 1.248 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005541/0.2905, allocations: 212.6 kB / 1.248 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.2909, allocations: 0.6846 MB / 1.249 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.213e-05/0.2909, allocations: 15.98 kB / 1.249 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.291, allocations: 23.36 kB / 1.249 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of SimCode: time 2.7e-07/0.291, allocations: 3.938 kB / 1.249 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.313, allocations: 2.139 MB / 1.251 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/7.882, allocations: 12.84 kB / 1.251 GB, free: 15.19 MB / 0.9825 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 400 --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