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.001805/0.001805, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.0022/0.0022, allocations: 214.3 kB / 22.25 MB, free: 5.254 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.514/1.514, allocations: 230.6 MB / 256 MB, free: 7.781 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.87/2.87, allocations: 476 MB / 0.7699 GB, free: 4.727 MB / 0.6231 GB " [Timeout remaining time 176] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_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.002096/0.002096, allocations: 68.98 kB / 1.117 GB, free: 40.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3186, allocations: 170 MB / 1.283 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003109/0.3218, allocations: 1.597 MB / 1.284 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009494/0.3227, allocations: 480.7 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.944e-05/0.3228, allocations: 0 / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.003e-05/0.3228, allocations: 3.938 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.6e-05/0.3229, allocations: 11.86 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.3231, allocations: 47.89 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000136/0.3232, allocations: 71.77 kB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.3233, allocations: 11.98 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.3235, allocations: 35.92 kB / 1.285 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.611e-05/0.3236, allocations: 31.89 kB / 1.285 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.3236, allocations: 8 kB / 1.285 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.592e-05/0.3236, allocations: 8 kB / 1.285 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.614e-05/0.3237, allocations: 27.8 kB / 1.285 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.36e-05/0.3237, allocations: 15.94 kB / 1.285 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.3239, allocations: 71.28 kB / 1.285 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3239, allocations: 8 kB / 1.285 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3239, allocations: 0 / 1.285 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.3239, allocations: 0 / 1.285 GB, free: 9.816 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.0006268/0.3245, allocations: 302.1 kB / 1.285 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3245, allocations: 12.03 kB / 1.285 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.3246, allocations: 38.73 kB / 1.285 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.3247, allocations: 20.88 kB / 1.285 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.325, allocations: 126.5 kB / 1.285 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.325, allocations: 8.375 kB / 1.285 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.325, allocations: 4.375 kB / 1.285 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.3252, allocations: 93.69 kB / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3253, allocations: 0 / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.3253, allocations: 4 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.3253, allocations: 0 / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.3254, allocations: 43.97 kB / 1.286 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005522/0.326, allocations: 279.7 kB / 1.286 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.3262, allocations: 86.53 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.622e-05/0.3263, allocations: 36.84 kB / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.3263, allocations: 0 / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.3266, allocations: 111.4 kB / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.3266, allocations: 0 / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004143/0.327, allocations: 177.5 kB / 1.286 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.327, allocations: 55.41 kB / 1.286 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.3272, allocations: 117.7 kB / 1.286 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3272, allocations: 29.7 kB / 1.286 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.276e-05/0.3272, allocations: 88.36 kB / 1.286 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/0.3273, allocations: 31.89 kB / 1.287 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-05/0.3273, allocations: 33.7 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3275, allocations: 322.8 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.705e-05/0.3276, allocations: 27.98 kB / 1.287 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.3277, allocations: 51.52 kB / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.3278, allocations: 65.7 kB / 1.287 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3278, allocations: 0 / 1.287 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002348/0.3281, allocations: 121.9 kB / 1.287 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3281, allocations: 8 kB / 1.287 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.3281, allocations: 0 / 1.287 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3281, allocations: 0 / 1.287 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.983e-05/0.3282, allocations: 15.98 kB / 1.287 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3282, allocations: 4 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.884e-05/0.3283, allocations: 8 kB / 1.287 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.3283, allocations: 4 kB / 1.287 GB, free: 7.332 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.0001131/0.3284, allocations: 129.7 kB / 1.287 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.3284, allocations: 7.953 kB / 1.287 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.835e-05/0.3284, allocations: 8.375 kB / 1.287 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3285, allocations: 4 kB / 1.287 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3285, allocations: 0 / 1.287 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3285, allocations: 0 / 1.287 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.3286, allocations: 156.7 kB / 1.287 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3286, allocations: 0 / 1.287 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.993e-05/0.3287, allocations: 20 kB / 1.287 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3287, allocations: 0 / 1.287 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.3287, allocations: 7.984 kB / 1.287 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3287, allocations: 0 / 1.287 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3287, allocations: 0 / 1.287 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004377/0.3292, allocations: 228.9 kB / 1.288 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.256e-05/0.3292, allocations: 3.953 kB / 1.288 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.3292, allocations: 12.02 kB / 1.288 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.011e-05/0.3293, allocations: 7.984 kB / 1.288 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.3293, allocations: 16.05 kB / 1.288 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.3294, allocations: 7.984 kB / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.602e-05/0.3294, allocations: 91.59 kB / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3294, allocations: 0 / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002087/0.3296, allocations: 27.92 kB / 1.288 GB, free: 6.543 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.0007597/0.3304, allocations: 0.7529 MB / 1.289 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002332/0.3306, allocations: 87.89 kB / 1.289 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3306, allocations: 4.062 kB / 1.289 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.3307, allocations: 39.98 kB / 1.289 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.331, allocations: 22.42 kB / 1.289 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/0.3328, allocations: 1.503 MB / 1.29 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.87e-05/0.3329, allocations: 75.33 kB / 1.29 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.529e-05/0.3329, allocations: 4.672 kB / 1.29 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.208e-05/0.333, allocations: 31.42 kB / 1.29 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.333, allocations: 0 / 1.29 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03289/0.3659, allocations: 2.867 MB / 1.293 GB, free: 1.18 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.86, allocations: 10.81 kB / 1.293 GB, free: 1.172 MB / 0.9825 GB " [Timeout remaining time 288] (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: 18.609502364415675]