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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.007565/0.007565, allocations: 99.95 kB / 15.73 MB, free: 6.016 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.001847/0.001847, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.576/2.576, allocations: 469.4 MB / 0.7422 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 63.91 kB / 1.064 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7417/0.7432, allocations: 159.1 MB / 1.22 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002607/0.7459, allocations: 1.531 MB / 1.221 GB, free: 0.7109 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.7471, allocations: 0.7606 MB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.484e-05/0.7471, allocations: 0 / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.122e-05/0.7472, allocations: 3.938 kB / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.58e-05/0.7473, allocations: 11.86 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003854/0.7477, allocations: 91.66 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.918e-05/0.7478, allocations: 59.72 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.06e-05/0.7479, allocations: 11.98 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.283e-05/0.748, allocations: 23.92 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.956e-05/0.748, allocations: 19.92 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.428e-05/0.7481, allocations: 4 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.7482, allocations: 71.94 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.806e-05/0.7482, allocations: 15.92 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.345e-05/0.7483, allocations: 19.88 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001872/0.7485, allocations: 95.41 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.7485, allocations: 0 / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7485, allocations: 3.938 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.7485, allocations: 0 / 1.222 GB, free: 15.52 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.0004608/0.749, allocations: 383 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.749, allocations: 8.625 kB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.037e-05/0.7491, allocations: 38.69 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003114/0.7494, allocations: 28.86 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.7495, allocations: 176.3 kB / 1.223 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.7495, allocations: 384 / 1.223 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.7495, allocations: 4.375 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.7498, allocations: 81.77 kB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.7498, allocations: 4 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.7498, allocations: 3.984 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.7498, allocations: 3.938 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002731/0.7501, allocations: 67.94 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004899/0.7506, allocations: 320.7 kB / 1.223 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002607/0.7509, allocations: 74.53 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.751, allocations: 36.92 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.7511, allocations: 3.984 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.7511, allocations: 42.56 kB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.7511, allocations: 0 / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0005373/0.7516, allocations: 137.5 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.7517, allocations: 51.41 kB / 1.224 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.95e-05/0.7518, allocations: 121.8 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.7518, allocations: 25.7 kB / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.477e-05/0.7519, allocations: 92.08 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.7519, allocations: 15.88 kB / 1.224 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-05/0.7519, allocations: 17.7 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.532e-05/0.752, allocations: 322.8 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.7522, allocations: 31.97 kB / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.7523, allocations: 35.97 kB / 1.224 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.7526, allocations: 64.81 kB / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.7526, allocations: 0 / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003557/0.753, allocations: 113.5 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.753, allocations: 4 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.753, allocations: 3.984 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.753, allocations: 0 / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.7532, allocations: 15.98 kB / 1.225 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.7532, allocations: 0 / 1.225 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.295e-05/0.7533, allocations: 7.984 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.7533, allocations: 0 / 1.225 GB, free: 13 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 8.398e-05/0.7534, allocations: 122.3 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/0.7534, allocations: 7.953 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.431e-05/0.7535, allocations: 7.891 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.7535, allocations: 0 / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.7535, allocations: 4 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.7535, allocations: 0 / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.7537, allocations: 189.6 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.7537, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.7539, allocations: 27.91 kB / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.7539, allocations: 0 / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.7539, allocations: 0 / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.7539, allocations: 0 / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.7539, allocations: 0 / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003803/0.7543, allocations: 215.7 kB / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.445e-05/0.7543, allocations: 81.05 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.7544, allocations: 4 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.7545, allocations: 7.984 kB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.567e-05/0.7545, allocations: 4 kB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.7545, allocations: 7.984 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.139e-05/0.7546, allocations: 99.58 kB / 1.225 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7546, allocations: 0 / 1.225 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002793/0.7549, allocations: 27.94 kB / 1.225 GB, free: 12.11 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.0007146/0.7556, allocations: 0.759 MB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000339/0.756, allocations: 75.94 kB / 1.226 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.756, allocations: 0 / 1.226 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.7561, allocations: 47.89 kB / 1.226 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.7564, allocations: 0 / 1.226 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005858/0.757, allocations: 220.5 kB / 1.226 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.7573, allocations: 0.6807 MB / 1.227 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.29e-05/0.7574, allocations: 19.98 kB / 1.227 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.873e-05/0.7574, allocations: 27.41 kB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of SimCode: time 2.4e-07/0.7574, allocations: 0 / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.7763, allocations: 2.148 MB / 1.229 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.086/7.862, allocations: 7.938 kB / 1.229 GB, free: 8.152 MB / 0.9512 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