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.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004526/0.004525, allocations: 97.81 kB / 15.73 MB, free: 5.961 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.001294/0.001294, allocations: 195.7 kB / 16.67 MB, free: 5.883 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.199/1.199, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.316/2.316, allocations: 469.8 MB / 0.7425 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 68.11 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6191/0.621, allocations: 159.1 MB / 1.22 GB, free: 2.051 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002398/0.6234, allocations: 1.56 MB / 1.222 GB, free: 496 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000637/0.6241, allocations: 447 kB / 1.222 GB, free: 44 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.681e-05/0.6241, allocations: 0 / 1.222 GB, free: 44 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.298e-05/0.6242, allocations: 3.938 kB / 1.222 GB, free: 40 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.973e-05/0.6242, allocations: 15.86 kB / 1.222 GB, free: 24 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.6244, allocations: 28.12 kB / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.6245, allocations: 71.83 kB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 7.904e-05/0.6246, allocations: 23.84 kB / 1.222 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.472e-05/0.6247, allocations: 23.98 kB / 1.222 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.661e-05/0.6248, allocations: 31.84 kB / 1.222 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.6248, allocations: 8 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.402e-05/0.6248, allocations: 4 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.936e-05/0.6249, allocations: 19.97 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.795e-05/0.6249, allocations: 27.86 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.625, allocations: 71.28 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.625, allocations: 4 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.433e-06/0.625, allocations: 0 / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.6251, allocations: 0 / 1.222 GB, free: 15.72 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005464/0.6256, allocations: 379.2 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.6256, allocations: 8.031 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.668e-05/0.6257, allocations: 34.73 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.699e-05/0.6257, allocations: 12.83 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.6259, allocations: 180.3 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.6259, allocations: 8.375 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.6259, allocations: 4.375 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/0.6261, allocations: 89.7 kB / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.914e-06/0.6261, allocations: 0 / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.6261, allocations: 3.984 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.6261, allocations: 4 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.6263, allocations: 43.97 kB / 1.223 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.6268, allocations: 312.8 kB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.627, allocations: 106.5 kB / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.984e-05/0.6271, allocations: 48.83 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.6271, allocations: 4.141 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002283/0.6274, allocations: 115.3 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.482e-06/0.6274, allocations: 4 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0003654/0.6278, allocations: 177.4 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.6278, allocations: 59.34 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.548e-05/0.6279, allocations: 105.8 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.6279, allocations: 29.7 kB / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.531e-05/0.628, allocations: 92.38 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.106e-05/0.628, allocations: 31.73 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.71e-05/0.6281, allocations: 25.72 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.6282, allocations: 326.8 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.567e-05/0.6283, allocations: 27.98 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.343e-05/0.6284, allocations: 49.69 kB / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.6285, allocations: 65.64 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.6285, allocations: 0 / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002016/0.6287, allocations: 109.6 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.6287, allocations: 8 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.6287, allocations: 0 / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.838e-06/0.6288, allocations: 0 / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.283e-05/0.6288, allocations: 19.92 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.6288, allocations: 0 / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.589e-05/0.6289, allocations: 15.98 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.6289, allocations: 4 kB / 1.225 GB, free: 13.02 MB / 0.9512 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.843e-05/0.629, allocations: 117.8 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.751e-05/0.6291, allocations: 11.89 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.113e-05/0.6291, allocations: 16.36 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.6291, allocations: 4 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.6291, allocations: 0 / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.6291, allocations: 3.984 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.6293, allocations: 197.5 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6293, allocations: 4 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.195e-05/0.6294, allocations: 15.98 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.6294, allocations: 0 / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.6294, allocations: 4 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.6294, allocations: 0 / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.6294, allocations: 0 / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.6298, allocations: 216.9 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.632e-05/0.6298, allocations: 93.09 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.6299, allocations: 4 kB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.563e-05/0.6299, allocations: 7.984 kB / 1.226 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.63, allocations: 19.92 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.63, allocations: 7.984 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.357e-05/0.6301, allocations: 87.58 kB / 1.226 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6301, allocations: 4 kB / 1.226 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000186/0.6303, allocations: 19.98 kB / 1.226 GB, free: 12.1 MB / 0.9512 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.0006554/0.6309, allocations: 0.7619 MB / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002149/0.6312, allocations: 87.89 kB / 1.226 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.6312, allocations: 0 / 1.226 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.6313, allocations: 63.92 kB / 1.227 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001725/0.6315, allocations: 25.92 kB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.633, allocations: 1.494 MB / 1.228 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.6333, allocations: 0.6923 MB / 1.229 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.385e-05/0.6333, allocations: 8.656 kB / 1.229 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.388e-05/0.6334, allocations: 27.38 kB / 1.229 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.6334, allocations: 0 / 1.229 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4934/1.127, allocations: 2.264 MB / 1.231 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/15, allocations: 7.922 kB / 1.231 GB, free: 6.645 MB / 0.9512 GB (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 --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) 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) Reference file matches