Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001729/0.001729, 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.002075/0.002075, allocations: 209.1 kB / 22.24 MB, free: 5.262 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.393/1.393, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.939/2.939, allocations: 0.4892 GB / 0.7943 GB, free: 35.57 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_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.002025/0.002025, allocations: 71.3 kB / 1.153 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3235, allocations: 176.1 MB / 1.325 GB, free: 2.336 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003005/0.3265, allocations: 1.587 MB / 1.327 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00098/0.3275, allocations: 482.8 kB / 1.327 GB, free: 272 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.617e-05/0.3275, allocations: 4 kB / 1.327 GB, free: 268 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.924e-05/0.3275, allocations: 7.938 kB / 1.327 GB, free: 260 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.138e-05/0.3276, allocations: 11.86 kB / 1.327 GB, free: 248 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.3279, allocations: 43.89 kB / 1.327 GB, free: 204 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.328, allocations: 75.78 kB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.084e-05/0.3281, allocations: 11.89 kB / 1.327 GB, free: 116 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.3282, allocations: 39.84 kB / 1.327 GB, free: 76 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.109e-05/0.3283, allocations: 27.91 kB / 1.327 GB, free: 48 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.3283, allocations: 4 kB / 1.327 GB, free: 44 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.569e-05/0.3284, allocations: 16 kB / 1.327 GB, free: 28 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.3284, allocations: 15.92 kB / 1.327 GB, free: 12 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.999e-05/0.3285, allocations: 28 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.3286, allocations: 75.98 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.3286, allocations: 0 / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.552e-06/0.3286, allocations: 0 / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.3286, allocations: 0 / 1.327 GB, free: 15.91 MB / 1.029 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.0005689/0.3292, allocations: 302.1 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3292, allocations: 8.031 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.127e-05/0.3293, allocations: 42.75 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.3294, allocations: 16.88 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.3296, allocations: 130.3 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.3296, allocations: 8.359 kB / 1.328 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.3297, allocations: 8.375 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.3299, allocations: 85.7 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.3299, allocations: 0 / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.3299, allocations: 0 / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.3299, allocations: 4 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.33, allocations: 47.91 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005451/0.3306, allocations: 287.8 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.3308, allocations: 74.55 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.799e-05/0.3309, allocations: 40.78 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.3309, allocations: 4.094 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.3312, allocations: 119.2 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.3312, allocations: 0 / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.000402/0.3316, allocations: 173.5 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.3317, allocations: 55.55 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.473e-05/0.3317, allocations: 117.8 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.3318, allocations: 29.7 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.172e-05/0.3318, allocations: 88.36 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.3319, allocations: 35.73 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-05/0.3319, allocations: 25.72 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3321, allocations: 326.8 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.86e-05/0.3322, allocations: 31.98 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.102e-05/0.3322, allocations: 44.33 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.3324, allocations: 70.12 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3324, allocations: 0 / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002146/0.3326, allocations: 117.4 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.3326, allocations: 4 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3326, allocations: 4 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.3326, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.216e-05/0.3327, allocations: 19.92 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.3327, allocations: 0 / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.653e-05/0.3328, allocations: 11.98 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.3328, allocations: 4 kB / 1.33 GB, free: 13.42 MB / 1.029 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.0001087/0.3329, allocations: 124 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.8e-05/0.3329, allocations: 7.953 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.308e-05/0.333, allocations: 12.36 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.333, allocations: 4 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.333, allocations: 4 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.333, allocations: 0 / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.3332, allocations: 160.7 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3332, allocations: 0 / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.554e-05/0.3332, allocations: 16.34 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.3332, allocations: 3.984 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.3333, allocations: 4 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3333, allocations: 0 / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3333, allocations: 3.938 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003862/0.3336, allocations: 216.9 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.335e-05/0.3337, allocations: 19.98 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.311e-05/0.3337, allocations: 4 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.13e-05/0.3338, allocations: 11.98 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.3338, allocations: 15.97 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.3338, allocations: 4 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.633e-05/0.3339, allocations: 91.27 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3339, allocations: 0 / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001949/0.3341, allocations: 20 kB / 1.33 GB, free: 12.64 MB / 1.029 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.0007499/0.3348, allocations: 0.7568 MB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002214/0.335, allocations: 91.89 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.335, allocations: 3.938 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.3351, allocations: 51.91 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/0.3353, allocations: 8 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.337, allocations: 1.506 MB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.628e-05/0.3371, allocations: 71.33 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.964e-05/0.3371, allocations: 16.66 kB / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.569e-05/0.3372, allocations: 19.44 kB / 1.333 GB, free: 9.984 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.3372, allocations: 0 / 1.333 GB, free: 9.984 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03015/0.3673, allocations: 2.872 MB / 1.336 GB, free: 7.258 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.9, allocations: 10.19 kB / 1.336 GB, free: 7.25 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 17.08768725488335]