Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001859/0.001859, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002498/0.002498, allocations: 218.9 kB / 23.04 MB, free: 5.078 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.73/2.73, allocations: 476.7 MB / 0.7714 GB, free: 4.289 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",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.002068/0.002068, allocations: 63.48 kB / 1.118 GB, free: 39.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2894, allocations: 170 MB / 1.284 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003054/0.2924, allocations: 1.615 MB / 1.286 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001075/0.2935, allocations: 0.5199 MB / 1.286 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.166e-05/0.2936, allocations: 0 / 1.286 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.109e-05/0.2936, allocations: 3.938 kB / 1.286 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.095e-05/0.2937, allocations: 11.92 kB / 1.286 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002708/0.294, allocations: 39.89 kB / 1.286 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.2941, allocations: 67.83 kB / 1.286 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.2942, allocations: 11.98 kB / 1.286 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.2944, allocations: 39.86 kB / 1.286 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.2945, allocations: 43.83 kB / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.2945, allocations: 8 kB / 1.286 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.963e-05/0.2946, allocations: 8 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.488e-05/0.2946, allocations: 15.98 kB / 1.286 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.41e-05/0.2947, allocations: 27.86 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.2948, allocations: 71.23 kB / 1.287 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.2948, allocations: 3.984 kB / 1.287 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2948, allocations: 0 / 1.287 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.2948, allocations: 0 / 1.287 GB, free: 9.125 MB / 0.9825 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.0006321/0.2955, allocations: 304.2 kB / 1.287 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.2955, allocations: 15.97 kB / 1.287 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.934e-05/0.2955, allocations: 192 / 1.287 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.2956, allocations: 34.73 kB / 1.287 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.2958, allocations: 20.88 kB / 1.287 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.296, allocations: 130.4 kB / 1.287 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.2961, allocations: 8.312 kB / 1.287 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.2961, allocations: 12.36 kB / 1.287 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002157/0.2963, allocations: 93.52 kB / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2963, allocations: 0 / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.2963, allocations: 0 / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.2963, allocations: 0 / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.2965, allocations: 43.97 kB / 1.287 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.297, allocations: 279.9 kB / 1.287 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.2973, allocations: 94.56 kB / 1.288 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.013e-05/0.2974, allocations: 36.78 kB / 1.288 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.2974, allocations: 0 / 1.288 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.2977, allocations: 115.3 kB / 1.288 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.2977, allocations: 4 kB / 1.288 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004039/0.2981, allocations: 173.4 kB / 1.288 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.2981, allocations: 59.41 kB / 1.288 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.29e-05/0.2982, allocations: 109.8 kB / 1.288 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.2982, allocations: 33.7 kB / 1.288 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.2983, allocations: 84.38 kB / 1.288 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.633e-05/0.2983, allocations: 35.88 kB / 1.288 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-05/0.2984, allocations: 33.7 kB / 1.288 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.2985, allocations: 322.8 kB / 1.289 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.414e-05/0.2986, allocations: 27.98 kB / 1.289 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.264e-05/0.2987, allocations: 45.69 kB / 1.289 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.2989, allocations: 69.64 kB / 1.289 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2989, allocations: 0 / 1.289 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002305/0.2991, allocations: 121.5 kB / 1.289 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.2991, allocations: 4 kB / 1.289 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2991, allocations: 48 / 1.289 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.2991, allocations: 7.984 kB / 1.289 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.563e-05/0.2992, allocations: 8 kB / 1.289 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.2992, allocations: 3.984 kB / 1.289 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.259e-05/0.2993, allocations: 8 kB / 1.289 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.2993, allocations: 4 kB / 1.289 GB, free: 6.625 MB / 0.9825 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 0.0001184/0.2994, allocations: 131 kB / 1.289 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.2995, allocations: 11.95 kB / 1.289 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.376e-05/0.2995, allocations: 16.38 kB / 1.289 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2995, allocations: 0 / 1.289 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2995, allocations: 0 / 1.289 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2995, allocations: 0 / 1.289 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2997, allocations: 168.6 kB / 1.289 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2997, allocations: 0 / 1.289 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.685e-05/0.2998, allocations: 12.38 kB / 1.289 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.2998, allocations: 4 kB / 1.289 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.2998, allocations: 3.984 kB / 1.289 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.2998, allocations: 4 kB / 1.289 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2998, allocations: 3.938 kB / 1.289 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004137/0.3002, allocations: 220.8 kB / 1.289 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.514e-05/0.3002, allocations: 11.92 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.3002, allocations: 7.984 kB / 1.289 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.788e-05/0.3003, allocations: 8.062 kB / 1.289 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.3004, allocations: 15.97 kB / 1.289 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.3004, allocations: 7.984 kB / 1.289 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.917e-05/0.3004, allocations: 87.28 kB / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3004, allocations: 0 / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000214/0.3007, allocations: 27.92 kB / 1.29 GB, free: 5.824 MB / 0.9825 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.000792/0.3014, allocations: 0.7574 MB / 1.29 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002673/0.3017, allocations: 87.89 kB / 1.29 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3017, allocations: 0 / 1.29 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.3018, allocations: 47.91 kB / 1.29 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.3021, allocations: 11.98 kB / 1.29 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.3041, allocations: 1.506 MB / 1.292 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.3045, allocations: 0.6924 MB / 1.293 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.757e-05/0.3046, allocations: 4.672 kB / 1.293 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.653e-05/0.3047, allocations: 27.42 kB / 1.293 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of SimCode: time 1.413e-06/0.3047, allocations: 0 / 1.293 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02487/0.3295, allocations: 2.493 MB / 1.295 GB, free: 216 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.55, allocations: 4.062 kB / 1.295 GB, free: 212 kB / 0.9825 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 19.134864962019492]