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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 98.08 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 216.8 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.351/1.351, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.916/2.916, allocations: 0.5003 GB / 0.8062 GB, free: 26.73 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 64 kB / 1.171 GB, free: 19.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3148, allocations: 179 MB / 1.345 GB, free: 492 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002558/0.3173, allocations: 1.573 MB / 1.347 GB, free: 14.89 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001239/0.3186, allocations: 0.8452 MB / 1.348 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.094e-05/0.3186, allocations: 4 kB / 1.348 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.527e-05/0.3186, allocations: 7.938 kB / 1.348 GB, free: 14.03 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.406e-05/0.3187, allocations: 15.84 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.319, allocations: 103.6 kB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.3191, allocations: 47.8 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.136e-05/0.3192, allocations: 15.97 kB / 1.348 GB, free: 13.85 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.3193, allocations: 39.8 kB / 1.348 GB, free: 13.81 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.051e-05/0.3194, allocations: 27.92 kB / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.3194, allocations: 4 kB / 1.348 GB, free: 13.78 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.3196, allocations: 67.94 kB / 1.348 GB, free: 13.71 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.3196, allocations: 15.92 kB / 1.348 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.117e-05/0.3196, allocations: 19.88 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.3198, allocations: 107.8 kB / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.3198, allocations: 7.984 kB / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3198, allocations: 0 / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.3198, allocations: 0 / 1.348 GB, free: 13.57 MB / 1.045 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.0004203/0.3202, allocations: 301.9 kB / 1.348 GB, free: 13.24 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.3203, allocations: 8.031 kB / 1.348 GB, free: 13.23 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.595e-05/0.3203, allocations: 4.188 kB / 1.348 GB, free: 13.23 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.993e-05/0.3203, allocations: 34.75 kB / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004279/0.3207, allocations: 44.83 kB / 1.349 GB, free: 13.14 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.3209, allocations: 144.1 kB / 1.349 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-06/0.3209, allocations: 4.375 kB / 1.349 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.321, allocations: 4.375 kB / 1.349 GB, free: 12.97 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/0.3212, allocations: 81.56 kB / 1.349 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.3212, allocations: 0 / 1.349 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.3212, allocations: 4 kB / 1.349 GB, free: 12.88 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.3212, allocations: 0 / 1.349 GB, free: 12.88 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.3215, allocations: 67.95 kB / 1.349 GB, free: 12.82 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004529/0.3219, allocations: 299.3 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002491/0.3222, allocations: 70.55 kB / 1.349 GB, free: 12.4 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.3223, allocations: 40.92 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.3223, allocations: 3.938 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.3223, allocations: 34.55 kB / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.3223, allocations: 0 / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0005018/0.3228, allocations: 137.5 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.3229, allocations: 59.41 kB / 1.349 GB, free: 12.1 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.612e-05/0.323, allocations: 121.8 kB / 1.35 GB, free: 11.97 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.323, allocations: 29.69 kB / 1.35 GB, free: 11.94 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.145e-05/0.3231, allocations: 92.09 kB / 1.35 GB, free: 11.84 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.3231, allocations: 7.891 kB / 1.35 GB, free: 11.84 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.813e-05/0.3231, allocations: 25.7 kB / 1.35 GB, free: 11.8 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.3233, allocations: 326.8 kB / 1.35 GB, free: 11.48 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.3234, allocations: 27.97 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.3235, allocations: 27.98 kB / 1.35 GB, free: 11.42 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.3238, allocations: 69.09 kB / 1.35 GB, free: 11.35 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3238, allocations: 0 / 1.35 GB, free: 11.35 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003179/0.3241, allocations: 117.5 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.3241, allocations: 4 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.3241, allocations: 0 / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.3241, allocations: 0 / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.3242, allocations: 27.97 kB / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.3242, allocations: 3.984 kB / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.921e-05/0.3243, allocations: 4 kB / 1.35 GB, free: 11.19 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.3243, allocations: 3.984 kB / 1.35 GB, free: 11.19 MB / 1.045 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.077e-05/0.3244, allocations: 117.8 kB / 1.35 GB, free: 11.06 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.3245, allocations: 7.953 kB / 1.35 GB, free: 11.05 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.574e-05/0.3245, allocations: 12 kB / 1.35 GB, free: 11.04 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.3245, allocations: 0 / 1.35 GB, free: 11.04 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3245, allocations: 0 / 1.35 GB, free: 11.04 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3245, allocations: 3.984 kB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.3247, allocations: 168.5 kB / 1.351 GB, free: 10.82 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3247, allocations: 0 / 1.351 GB, free: 10.82 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.3248, allocations: 11.98 kB / 1.351 GB, free: 10.81 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.3248, allocations: 0 / 1.351 GB, free: 10.81 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.3248, allocations: 11.92 kB / 1.351 GB, free: 10.8 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3248, allocations: 0 / 1.351 GB, free: 10.8 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3248, allocations: 7.938 kB / 1.351 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003625/0.3252, allocations: 203.4 kB / 1.351 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-06/0.3252, allocations: 0 / 1.351 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.3252, allocations: 0 / 1.351 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.3253, allocations: 11.98 kB / 1.351 GB, free: 10.57 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.207e-05/0.3254, allocations: 8 kB / 1.351 GB, free: 10.56 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.3254, allocations: 3.984 kB / 1.351 GB, free: 10.55 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.124e-05/0.3254, allocations: 97.89 kB / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of sort global known variables: time 5e-08/0.3254, allocations: 0 / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002592/0.3257, allocations: 27.88 kB / 1.351 GB, free: 10.43 MB / 1.045 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.0007186/0.3264, allocations: 0.7707 MB / 1.352 GB, free: 9.637 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003052/0.3267, allocations: 71.94 kB / 1.352 GB, free: 9.566 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3267, allocations: 4 kB / 1.352 GB, free: 9.562 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.3269, allocations: 39.91 kB / 1.352 GB, free: 9.523 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.3271, allocations: 3.984 kB / 1.352 GB, free: 9.52 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.3289, allocations: 1.471 MB / 1.353 GB, free: 7.969 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.3292, allocations: 0.6846 MB / 1.354 GB, free: 7.258 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 7.281e-05/0.3293, allocations: 20.02 kB / 1.354 GB, free: 7.238 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.678e-05/0.3293, allocations: 19.42 kB / 1.354 GB, free: 7.219 MB / 1.045 GB Notification: Performance of SimCode: time 3.31e-07/0.3293, allocations: 0 / 1.354 GB, free: 7.219 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.3508, allocations: 2.348 MB / 1.356 GB, free: 5.023 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.42, allocations: 8 kB / 1.356 GB, free: 5.016 MB / 1.045 GB " [Timeout remaining time 289] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.498258300998714]