Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.001234/0.001234, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.001364/0.001364, allocations: 220 kB / 22.24 MB, free: 5.109 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.331/1.331, allocations: 230.6 MB / 256 MB, free: 7.832 MB / 206.1 MB " [Timeout remaining time 179] 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.992/2.992, allocations: 0.5107 GB / 0.8158 GB, free: 17.85 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.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",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.001936/0.001936, allocations: 72.2 kB / 1.186 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3021, allocations: 181.9 MB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002544/0.3046, allocations: 1.585 MB / 1.365 GB, free: 12.53 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008376/0.3055, allocations: 487.8 kB / 1.365 GB, free: 12.05 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.259e-05/0.3055, allocations: 0 / 1.365 GB, free: 12.05 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.461e-05/0.3056, allocations: 3.938 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.209e-05/0.3056, allocations: 15.88 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.3058, allocations: 47.88 kB / 1.365 GB, free: 11.98 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.00012/0.306, allocations: 67.78 kB / 1.366 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.171e-05/0.306, allocations: 11.98 kB / 1.366 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.3062, allocations: 39.84 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.461e-05/0.3062, allocations: 27.84 kB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.3062, allocations: 8 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.47e-05/0.3063, allocations: 12 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.196e-05/0.3063, allocations: 15.98 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.208e-05/0.3064, allocations: 31.86 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.3065, allocations: 64.05 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.3065, allocations: 0 / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3065, allocations: 0 / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.3065, allocations: 0 / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005108/0.307, allocations: 310 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.307, allocations: 12.03 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.382e-05/0.3071, allocations: 34.73 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.3072, allocations: 20.92 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.3074, allocations: 126.4 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.3074, allocations: 8.375 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.3074, allocations: 8.375 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.3076, allocations: 89.75 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.3076, allocations: 0 / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.3076, allocations: 0 / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3076, allocations: 0 / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.3078, allocations: 47.91 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004835/0.3083, allocations: 279.8 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.3085, allocations: 86.47 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.364e-05/0.3086, allocations: 40.84 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.3086, allocations: 96 / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.3088, allocations: 115.4 kB / 1.367 GB, free: 10.42 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.3088, allocations: 4 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0003641/0.3092, allocations: 169.5 kB / 1.367 GB, free: 10.24 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.3092, allocations: 59.39 kB / 1.367 GB, free: 10.17 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.423e-05/0.3093, allocations: 117.8 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.3093, allocations: 25.7 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.541e-05/0.3094, allocations: 92.36 kB / 1.367 GB, free: 9.918 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.3094, allocations: 27.75 kB / 1.367 GB, free: 9.891 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.688e-05/0.3095, allocations: 29.7 kB / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3096, allocations: 322.8 kB / 1.368 GB, free: 9.531 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.436e-05/0.3097, allocations: 39.98 kB / 1.368 GB, free: 9.492 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.454e-05/0.3098, allocations: 45.7 kB / 1.368 GB, free: 9.441 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.3099, allocations: 57.7 kB / 1.368 GB, free: 9.379 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3099, allocations: 0 / 1.368 GB, free: 9.379 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002177/0.3101, allocations: 129.8 kB / 1.368 GB, free: 9.246 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.3101, allocations: 4 kB / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.3101, allocations: 0 / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.3101, allocations: 0 / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.73e-05/0.3102, allocations: 23.92 kB / 1.368 GB, free: 9.219 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.3102, allocations: 4 kB / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.3103, allocations: 7.953 kB / 1.368 GB, free: 9.207 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.3103, allocations: 4 kB / 1.368 GB, free: 9.203 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.279e-05/0.3104, allocations: 129 kB / 1.368 GB, free: 9.07 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.805e-05/0.3104, allocations: 7.953 kB / 1.368 GB, free: 9.062 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.002e-05/0.3105, allocations: 12.38 kB / 1.368 GB, free: 9.047 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3105, allocations: 0 / 1.368 GB, free: 9.047 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3105, allocations: 0 / 1.368 GB, free: 9.047 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3105, allocations: 3.984 kB / 1.368 GB, free: 9.043 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.3106, allocations: 164.7 kB / 1.368 GB, free: 8.84 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3106, allocations: 384 / 1.368 GB, free: 8.84 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.131e-05/0.3107, allocations: 15.94 kB / 1.368 GB, free: 8.824 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3107, allocations: 0 / 1.368 GB, free: 8.824 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.3107, allocations: 7.922 kB / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3107, allocations: 3.938 kB / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3107, allocations: 4 kB / 1.368 GB, free: 8.809 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003737/0.3111, allocations: 213 kB / 1.369 GB, free: 8.582 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.022e-05/0.3111, allocations: 15.91 kB / 1.369 GB, free: 8.566 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.3111, allocations: 4 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.983e-05/0.3112, allocations: 12.05 kB / 1.369 GB, free: 8.551 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.3112, allocations: 11.98 kB / 1.369 GB, free: 8.539 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.3112, allocations: 7.984 kB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.206e-05/0.3113, allocations: 87.28 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3113, allocations: 3.938 kB / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001951/0.3115, allocations: 23.98 kB / 1.369 GB, free: 8.418 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006755/0.3122, allocations: 0.749 MB / 1.369 GB, free: 7.641 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.00023/0.3124, allocations: 95.89 kB / 1.369 GB, free: 7.547 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.3124, allocations: 0 / 1.369 GB, free: 7.547 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.3125, allocations: 43.92 kB / 1.37 GB, free: 7.504 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001896/0.3127, allocations: 15.98 kB / 1.37 GB, free: 7.488 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.3143, allocations: 1.506 MB / 1.371 GB, free: 5.902 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.267e-05/0.3144, allocations: 75.33 kB / 1.371 GB, free: 5.809 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.537e-05/0.3144, allocations: 8.672 kB / 1.371 GB, free: 5.801 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.497e-05/0.3145, allocations: 23.42 kB / 1.371 GB, free: 5.777 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.3145, allocations: 0 / 1.371 GB, free: 5.777 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/0.3438, allocations: 2.875 MB / 1.374 GB, free: 3.047 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.6, allocations: 13.94 kB / 1.374 GB, free: 3.035 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.619982938747853]