Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_10_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.004406/0.004406, allocations: 98.64 kB / 15.73 MB, free: 6.449 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.001317/0.001317, allocations: 197.6 kB / 16.68 MB, free: 6.348 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.724/2.724, allocations: 437 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 71.88 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2839, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002606/0.2866, allocations: 1.529 MB / 1.168 GB, free: 5.805 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.2878, allocations: 0.7565 MB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.584e-05/0.2878, allocations: 0 / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.033e-05/0.2879, allocations: 7.938 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.212e-05/0.2879, allocations: 15.86 kB / 1.168 GB, free: 5.016 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000355/0.2883, allocations: 87.66 kB / 1.169 GB, free: 4.93 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.903e-05/0.2884, allocations: 55.72 kB / 1.169 GB, free: 4.875 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.775e-05/0.2885, allocations: 11.98 kB / 1.169 GB, free: 4.863 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.777e-05/0.2886, allocations: 27.92 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.596e-05/0.2887, allocations: 19.92 kB / 1.169 GB, free: 4.816 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.2887, allocations: 7.984 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.2889, allocations: 67.89 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.168e-05/0.2889, allocations: 15.92 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.578e-05/0.289, allocations: 19.88 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.2891, allocations: 95.97 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2892, allocations: 4 kB / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2892, allocations: 0 / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.2892, allocations: 0 / 1.169 GB, free: 4.609 MB / 0.92 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.0005053/0.2897, allocations: 390.9 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2897, allocations: 12.03 kB / 1.169 GB, free: 4.168 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.2898, allocations: 38.69 kB / 1.169 GB, free: 4.121 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002852/0.2901, allocations: 20.91 kB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.2902, allocations: 172.3 kB / 1.169 GB, free: 3.895 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.2902, allocations: 4.375 kB / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.2902, allocations: 4.375 kB / 1.169 GB, free: 3.887 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.2905, allocations: 85.7 kB / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.2905, allocations: 0 / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.2905, allocations: 0 / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.2905, allocations: 0 / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002717/0.2908, allocations: 67.94 kB / 1.17 GB, free: 3.73 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005013/0.2913, allocations: 320.8 kB / 1.17 GB, free: 3.367 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.2916, allocations: 70.53 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.2918, allocations: 48.86 kB / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.2918, allocations: 0 / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.2918, allocations: 30.56 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.2918, allocations: 0 / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0005701/0.2924, allocations: 141.6 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.2925, allocations: 51.41 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.2926, allocations: 117.8 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.2926, allocations: 29.7 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.2927, allocations: 88.08 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.2927, allocations: 7.953 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.256e-05/0.2928, allocations: 21.7 kB / 1.17 GB, free: 2.707 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002217/0.293, allocations: 326.8 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.2931, allocations: 31.91 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.2933, allocations: 39.91 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.2935, allocations: 68.81 kB / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2935, allocations: 0 / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003294/0.2939, allocations: 101.6 kB / 1.171 GB, free: 2.133 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2939, allocations: 8 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.2939, allocations: 0 / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.2939, allocations: 0 / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.2941, allocations: 15.97 kB / 1.171 GB, free: 2.109 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.2941, allocations: 4 kB / 1.171 GB, free: 2.105 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.829e-05/0.2942, allocations: 12.25 kB / 1.171 GB, free: 2.094 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.2942, allocations: 4 kB / 1.171 GB, free: 2.09 MB / 0.92 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 8.863e-05/0.2943, allocations: 120 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.243e-05/0.2943, allocations: 3.953 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.649e-05/0.2944, allocations: 15.88 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.2944, allocations: 0 / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2944, allocations: 4 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2944, allocations: 0 / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.2946, allocations: 205.1 kB / 1.171 GB, free: 1.684 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2947, allocations: 0 / 1.171 GB, free: 1.684 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.2948, allocations: 11.98 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2948, allocations: 0 / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.2948, allocations: 11.98 kB / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2948, allocations: 0 / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2948, allocations: 0 / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004014/0.2952, allocations: 211.3 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.856e-05/0.2953, allocations: 77.11 kB / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.2953, allocations: 0 / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.2954, allocations: 7.984 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.963e-05/0.2955, allocations: 4 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.2955, allocations: 7.984 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.003e-05/0.2955, allocations: 91.72 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of sort global known variables: time 9.017e-06/0.2956, allocations: 4 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002697/0.2958, allocations: 35.8 kB / 1.172 GB, free: 1.195 MB / 0.92 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.0008409/0.2967, allocations: 0.7591 MB / 1.173 GB, free: 420 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003315/0.297, allocations: 75.88 kB / 1.173 GB, free: 344 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.297, allocations: 0 / 1.173 GB, free: 344 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.2972, allocations: 39.97 kB / 1.173 GB, free: 304 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.2975, allocations: 6.203 kB / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005759/0.2981, allocations: 216.5 kB / 1.173 GB, free: 44 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.2984, allocations: 0.6807 MB / 1.174 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.821e-05/0.2985, allocations: 15.98 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.253e-05/0.2986, allocations: 23.42 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of SimCode: time 2.254e-06/0.2986, allocations: 4 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.3216, allocations: 2.145 MB / 1.176 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/7.965, allocations: 12.72 kB / 1.176 GB, free: 13.24 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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