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.00141/0.00141, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001665/0.001665, allocations: 222.1 kB / 23 MB, free: 4.914 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.731/2.731, allocations: 476 MB / 0.7707 GB, free: 4.773 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.00208/0.00208, allocations: 72.98 kB / 1.118 GB, free: 41.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3106, allocations: 169.9 MB / 1.284 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003232/0.3138, allocations: 1.599 MB / 1.285 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.3148, allocations: 480.7 kB / 1.286 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.062e-05/0.3149, allocations: 7.938 kB / 1.286 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.324e-05/0.3149, allocations: 3.938 kB / 1.286 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.816e-05/0.315, allocations: 11.88 kB / 1.286 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.3153, allocations: 43.88 kB / 1.286 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.3154, allocations: 63.84 kB / 1.286 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.294e-05/0.3155, allocations: 11.98 kB / 1.286 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.3157, allocations: 39.91 kB / 1.286 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.673e-05/0.3157, allocations: 31.84 kB / 1.286 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.3158, allocations: 12 kB / 1.286 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.731e-05/0.3158, allocations: 8 kB / 1.286 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.3158, allocations: 15.98 kB / 1.286 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.238e-05/0.3159, allocations: 27.86 kB / 1.286 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.316, allocations: 75.64 kB / 1.286 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.316, allocations: 0 / 1.286 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3161, allocations: 0 / 1.286 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.82e-06/0.3161, allocations: 0 / 1.286 GB, free: 9.512 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.0005916/0.3166, allocations: 302.1 kB / 1.286 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3167, allocations: 16.03 kB / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.3168, allocations: 16.88 kB / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.3171, allocations: 126.5 kB / 1.287 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.3171, allocations: 12.38 kB / 1.287 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/0.3172, allocations: 4.375 kB / 1.287 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.3174, allocations: 85.89 kB / 1.287 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.3174, allocations: 0 / 1.287 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.3174, allocations: 4 kB / 1.287 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.3174, allocations: 11.92 kB / 1.287 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.3175, allocations: 39.97 kB / 1.287 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004967/0.318, allocations: 248.5 kB / 1.287 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.3183, allocations: 90.5 kB / 1.287 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.3184, allocations: 36.84 kB / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.3184, allocations: 0 / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.3186, allocations: 119.5 kB / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.3186, allocations: 0 / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0003994/0.319, allocations: 173.5 kB / 1.287 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.3191, allocations: 55.41 kB / 1.287 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.682e-05/0.3192, allocations: 121.8 kB / 1.288 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.3192, allocations: 25.7 kB / 1.288 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.361e-05/0.3193, allocations: 88.38 kB / 1.288 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.867e-05/0.3193, allocations: 31.73 kB / 1.288 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.835e-05/0.3194, allocations: 25.72 kB / 1.288 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3195, allocations: 326.8 kB / 1.288 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.93e-05/0.3196, allocations: 27.98 kB / 1.288 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.855e-05/0.3197, allocations: 47.08 kB / 1.288 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.3198, allocations: 73.5 kB / 1.288 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3198, allocations: 4 kB / 1.288 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002264/0.32, allocations: 113.6 kB / 1.288 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.3201, allocations: 4 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3201, allocations: 0 / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3201, allocations: 4 kB / 1.288 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.878e-05/0.3202, allocations: 15.98 kB / 1.288 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3202, allocations: 0 / 1.288 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.031e-05/0.3202, allocations: 7.984 kB / 1.288 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.3203, allocations: 4 kB / 1.288 GB, free: 7.113 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.0001064/0.3204, allocations: 125.7 kB / 1.288 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.3204, allocations: 7.953 kB / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.699e-05/0.3204, allocations: 16.36 kB / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.3204, allocations: 384 / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3204, allocations: 4 kB / 1.288 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3204, allocations: 0 / 1.288 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.3206, allocations: 141.2 kB / 1.289 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3206, allocations: 3.938 kB / 1.289 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.065e-05/0.3207, allocations: 8 kB / 1.289 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3207, allocations: 0 / 1.289 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.3207, allocations: 11.98 kB / 1.289 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3207, allocations: 4 kB / 1.289 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3207, allocations: 0 / 1.289 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003958/0.3211, allocations: 221.4 kB / 1.289 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.556e-05/0.3211, allocations: 15.95 kB / 1.289 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.3211, allocations: 7.984 kB / 1.289 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.127e-05/0.3212, allocations: 8 kB / 1.289 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.3212, allocations: 15.91 kB / 1.289 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.3213, allocations: 11.98 kB / 1.289 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.388e-05/0.3213, allocations: 87.28 kB / 1.289 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3213, allocations: 0 / 1.289 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002096/0.3215, allocations: 19.98 kB / 1.289 GB, free: 6.355 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.0001272/0.3216, allocations: 103.2 kB / 1.289 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002326/0.3219, allocations: 87.89 kB / 1.289 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3219, allocations: 0 / 1.289 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.322, allocations: 51.91 kB / 1.289 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.3222, allocations: 14.28 kB / 1.289 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005651/0.3228, allocations: 287.6 kB / 1.29 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.851e-05/0.3229, allocations: 79.27 kB / 1.29 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.3229, allocations: 11.44 kB / 1.29 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3229, allocations: 0 / 1.29 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of Templates: time 0.003232/0.3261, allocations: 1.187 MB / 1.291 GB, free: 4.5 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.91852597007528]