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.001578/0.001578, allocations: 110.5 kB / 19.69 MB, free: 2.254 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.001795/0.001795, allocations: 215.2 kB / 23.01 MB, free: 4.566 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.458/1.458, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.732/2.732, allocations: 476.8 MB / 0.7714 GB, free: 4.465 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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [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.002107/0.002107, allocations: 66.53 kB / 1.119 GB, free: 40.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.309, allocations: 170 MB / 1.285 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003085/0.3121, allocations: 1.603 MB / 1.286 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.3131, allocations: 0.516 MB / 1.287 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.2e-05/0.3132, allocations: 4 kB / 1.287 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.07e-05/0.3132, allocations: 3.938 kB / 1.287 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.316e-05/0.3133, allocations: 11.86 kB / 1.287 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.3135, allocations: 43.83 kB / 1.287 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.3137, allocations: 67.84 kB / 1.287 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.3138, allocations: 11.92 kB / 1.287 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.3139, allocations: 47.91 kB / 1.287 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.988e-05/0.314, allocations: 35.84 kB / 1.287 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.972e-05/0.3141, allocations: 7.938 kB / 1.287 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.521e-05/0.3141, allocations: 8 kB / 1.287 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.3141, allocations: 19.97 kB / 1.287 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.826e-05/0.3142, allocations: 31.86 kB / 1.287 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.3143, allocations: 67.7 kB / 1.287 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.3143, allocations: 8 kB / 1.287 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3144, allocations: 0 / 1.287 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.3144, allocations: 0 / 1.287 GB, free: 8.762 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.0006181/0.315, allocations: 302.1 kB / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.315, allocations: 8.031 kB / 1.287 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.3152, allocations: 12.89 kB / 1.287 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.3154, allocations: 130.4 kB / 1.287 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.3154, allocations: 4.375 kB / 1.287 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.3155, allocations: 12.38 kB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.3157, allocations: 85.89 kB / 1.288 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3157, allocations: 7.984 kB / 1.288 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.3157, allocations: 4 kB / 1.288 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.3157, allocations: 7.938 kB / 1.288 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001311/0.3159, allocations: 35.97 kB / 1.288 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005687/0.3164, allocations: 295.8 kB / 1.288 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.3167, allocations: 78.55 kB / 1.288 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.805e-05/0.3168, allocations: 36.84 kB / 1.288 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.3168, allocations: 4 kB / 1.288 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.317, allocations: 111.3 kB / 1.288 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.552e-06/0.317, allocations: 96 / 1.288 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004041/0.3174, allocations: 177.8 kB / 1.288 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.3175, allocations: 55.39 kB / 1.288 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.3176, allocations: 121.7 kB / 1.288 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.3176, allocations: 25.7 kB / 1.288 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.3177, allocations: 88.38 kB / 1.289 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.037e-05/0.3177, allocations: 31.73 kB / 1.289 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/0.3178, allocations: 25.72 kB / 1.289 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3179, allocations: 330.8 kB / 1.289 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.31e-05/0.318, allocations: 27.98 kB / 1.289 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.766e-05/0.3181, allocations: 49.69 kB / 1.289 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.3182, allocations: 65.69 kB / 1.289 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3182, allocations: 0 / 1.289 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002138/0.3184, allocations: 117.5 kB / 1.289 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3184, allocations: 12 kB / 1.289 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3185, allocations: 0 / 1.289 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3185, allocations: 0 / 1.289 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.656e-05/0.3185, allocations: 11.98 kB / 1.289 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.3186, allocations: 4 kB / 1.289 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.786e-05/0.3186, allocations: 7.984 kB / 1.289 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.3186, allocations: 4 kB / 1.289 GB, free: 6.32 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.0001027/0.3187, allocations: 128.1 kB / 1.289 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.3188, allocations: 11.95 kB / 1.289 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.3188, allocations: 12.41 kB / 1.289 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.3188, allocations: 7.984 kB / 1.289 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3188, allocations: 0 / 1.289 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3188, allocations: 0 / 1.289 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.319, allocations: 168.8 kB / 1.29 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.319, allocations: 0 / 1.29 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.212e-05/0.3191, allocations: 11.98 kB / 1.29 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.3191, allocations: 4 kB / 1.29 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.3191, allocations: 4 kB / 1.29 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3191, allocations: 4 kB / 1.29 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.3191, allocations: 4 kB / 1.29 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003933/0.3195, allocations: 224.8 kB / 1.29 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.659e-05/0.3195, allocations: 12.27 kB / 1.29 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.3195, allocations: 4 kB / 1.29 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.216e-05/0.3196, allocations: 11.98 kB / 1.29 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.3196, allocations: 16.03 kB / 1.29 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.3197, allocations: 11.94 kB / 1.29 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.216e-05/0.3197, allocations: 91.27 kB / 1.29 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3197, allocations: 0 / 1.29 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001977/0.3199, allocations: 16 kB / 1.29 GB, free: 5.52 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.000134/0.32, allocations: 104.2 kB / 1.29 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002452/0.3203, allocations: 91.77 kB / 1.29 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3203, allocations: 8 kB / 1.29 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.3204, allocations: 47.92 kB / 1.29 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.3206, allocations: 11.98 kB / 1.29 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000644/0.3212, allocations: 292.2 kB / 1.29 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3216, allocations: 0.6885 MB / 1.291 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.379e-05/0.3216, allocations: 15.44 kB / 1.291 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.3216, allocations: 0 / 1.291 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of Templates: time 0.002891/0.3245, allocations: 1.163 MB / 1.292 GB, free: 3.051 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] 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: 10.798199001990724]