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.001059/0.001059, allocations: 87.58 kB / 20.45 MB, free: 4.117 MB / 18.57 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.0009652/0.0009652, allocations: 161 kB / 23.82 MB, free: 0.75 MB / 18.57 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 0.9471/0.9471, allocations: 177.1 MB / 204.2 MB, free: 5.258 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.901/1.901, allocations: 359 MB / 0.6052 GB, free: 11.03 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 0.7871 GB, free: 11.38 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.04e-05/2.251e-05, allocations: 6.047 kB / 0.7871 GB, free: 11.37 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002957/0.00298, allocations: 1.626 MB / 0.7887 GB, free: 9.754 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001048/0.004027, allocations: 0.4884 MB / 0.7892 GB, free: 9.262 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.381e-05/0.004101, allocations: 0 / 0.7892 GB, free: 9.262 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 4e-05/0.004141, allocations: 13.02 kB / 0.7892 GB, free: 9.25 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 9.395e-05/0.004235, allocations: 9.281 kB / 0.7892 GB, free: 9.242 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.004546, allocations: 39.88 kB / 0.7892 GB, free: 9.203 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.004701, allocations: 79.77 kB / 0.7893 GB, free: 9.125 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.004808, allocations: 12.98 kB / 0.7893 GB, free: 9.113 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001874/0.004995, allocations: 47.94 kB / 0.7894 GB, free: 9.066 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.746e-05/0.005083, allocations: 33.45 kB / 0.7894 GB, free: 9.035 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.005106, allocations: 4 kB / 0.7894 GB, free: 9.031 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.089e-05/0.005157, allocations: 8 kB / 0.7894 GB, free: 9.023 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.508e-05/0.005182, allocations: 15.94 kB / 0.7894 GB, free: 9.008 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.76e-05/0.00523, allocations: 19.97 kB / 0.7894 GB, free: 8.988 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.005387, allocations: 64.36 kB / 0.7895 GB, free: 8.926 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.00539, allocations: 1.656 kB / 0.7895 GB, free: 8.926 MB / 0.698 GB Notification: Performance of FrontEnd: time 7.32e-07/0.00539, allocations: 0 / 0.7895 GB, free: 8.926 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.005395, allocations: 0 / 0.7895 GB, free: 8.926 MB / 0.698 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.0005549/0.00595, allocations: 400.1 kB / 0.7899 GB, free: 8.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.005996, allocations: 12.72 kB / 0.7899 GB, free: 8.488 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.006152, allocations: 17.77 kB / 0.7899 GB, free: 8.473 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001897/0.006342, allocations: 128.5 kB / 0.79 GB, free: 8.32 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.006365, allocations: 5.938 kB / 0.79 GB, free: 8.316 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.577e-05/0.006401, allocations: 16.36 kB / 0.7901 GB, free: 8.301 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.006589, allocations: 90.78 kB / 0.7901 GB, free: 8.203 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.006597, allocations: 192 / 0.7901 GB, free: 8.203 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.00661, allocations: 2.188 kB / 0.7901 GB, free: 8.203 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.006622, allocations: 7.922 kB / 0.7902 GB, free: 8.195 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.756e-05/0.006699, allocations: 23.98 kB / 0.7902 GB, free: 8.172 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000513/0.007212, allocations: 303.6 kB / 0.7905 GB, free: 7.84 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002456/0.007458, allocations: 85.47 kB / 0.7906 GB, free: 7.746 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.693e-05/0.007514, allocations: 23.67 kB / 0.7906 GB, free: 7.719 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.007535, allocations: 4 kB / 0.7906 GB, free: 7.715 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/0.007721, allocations: 105.5 kB / 0.7907 GB, free: 7.598 MB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.007723, allocations: 4.656 kB / 0.7907 GB, free: 7.594 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0003342/0.008057, allocations: 145.6 kB / 0.7908 GB, free: 7.445 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.008101, allocations: 55.92 kB / 0.7909 GB, free: 7.379 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.008221, allocations: 171.6 kB / 0.791 GB, free: 7.195 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.008239, allocations: 29.7 kB / 0.7911 GB, free: 7.16 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.452e-05/0.008284, allocations: 135.1 kB / 0.7912 GB, free: 7.023 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.16e-05/0.008315, allocations: 31.73 kB / 0.7912 GB, free: 6.992 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.866e-05/0.008354, allocations: 31.38 kB / 0.7913 GB, free: 6.953 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.008468, allocations: 0.4967 MB / 0.7917 GB, free: 6.445 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.567e-05/0.008503, allocations: 13.3 kB / 0.7918 GB, free: 6.434 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.441e-05/0.008548, allocations: 43.3 kB / 0.7918 GB, free: 6.383 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.452e-05/0.008612, allocations: 47.38 kB / 0.7918 GB, free: 6.328 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.008615, allocations: 0 / 0.7918 GB, free: 6.328 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000113/0.008728, allocations: 98.66 kB / 0.7919 GB, free: 6.227 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.008743, allocations: 4 kB / 0.7919 GB, free: 6.223 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.00875, allocations: 7.984 kB / 0.7919 GB, free: 6.215 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.008768, allocations: 1.375 kB / 0.7919 GB, free: 6.215 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.917e-05/0.008827, allocations: 11.98 kB / 0.792 GB, free: 6.203 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.008831, allocations: 0 / 0.792 GB, free: 6.203 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.695e-05/0.008868, allocations: 13.64 kB / 0.792 GB, free: 6.191 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.008877, allocations: 8 kB / 0.792 GB, free: 6.184 MB / 0.698 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 7.041e-05/0.008947, allocations: 172.4 kB / 0.7921 GB, free: 6.004 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.008964, allocations: 15.89 kB / 0.7922 GB, free: 5.988 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.359e-05/0.008988, allocations: 13.25 kB / 0.7922 GB, free: 5.977 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.00899, allocations: 4 kB / 0.7922 GB, free: 5.973 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.008993, allocations: 1.625 kB / 0.7922 GB, free: 5.973 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.008997, allocations: 3.984 kB / 0.7922 GB, free: 5.969 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.009119, allocations: 136.8 kB / 0.7923 GB, free: 5.801 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.009121, allocations: 0 / 0.7923 GB, free: 5.801 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.756e-05/0.009189, allocations: 8.891 kB / 0.7923 GB, free: 5.793 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.009195, allocations: 7.938 kB / 0.7923 GB, free: 5.785 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.009209, allocations: 7.438 kB / 0.7923 GB, free: 5.781 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.009211, allocations: 4 kB / 0.7923 GB, free: 5.777 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.009212, allocations: 0 / 0.7923 GB, free: 5.777 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.009442, allocations: 196.7 kB / 0.7925 GB, free: 5.562 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-06/0.009451, allocations: 7.953 kB / 0.7925 GB, free: 5.555 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.00947, allocations: 7.938 kB / 0.7925 GB, free: 5.547 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.35e-05/0.009503, allocations: 7.984 kB / 0.7925 GB, free: 5.539 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.33e-05/0.009547, allocations: 15.97 kB / 0.7926 GB, free: 5.523 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.009554, allocations: 4 kB / 0.7926 GB, free: 5.52 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.785e-05/0.009592, allocations: 131.7 kB / 0.7927 GB, free: 5.391 MB / 0.698 GB Notification: Performance of sort global known variables: time 6e-08/0.009592, allocations: 0 / 0.7927 GB, free: 5.391 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000937/0.01053, allocations: 21.94 kB / 0.7927 GB, free: 5.371 MB / 0.698 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.000136/0.01066, allocations: 115 kB / 0.7928 GB, free: 5.254 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001971/0.01086, allocations: 67.66 kB / 0.7929 GB, free: 5.184 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01086, allocations: 2.219 kB / 0.7929 GB, free: 5.184 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 6.747e-05/0.01093, allocations: 55.55 kB / 0.7929 GB, free: 5.125 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002015/0.01113, allocations: 11.98 kB / 0.793 GB, free: 5.113 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006805/0.01181, allocations: 244.8 kB / 0.7932 GB, free: 4.863 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.662e-05/0.01185, allocations: 60.02 kB / 0.7932 GB, free: 4.785 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.93e-05/0.01189, allocations: 12.75 kB / 0.7933 GB, free: 4.773 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.041e-05/0.01193, allocations: 12.5 kB / 0.7933 GB, free: 4.758 MB / 0.698 GB Notification: Performance of SimCode: time 1.032e-06/0.01193, allocations: 4 kB / 0.7933 GB, free: 4.754 MB / 0.698 GB Notification: Performance of Templates: time 0.003121/0.01505, allocations: 1.142 MB / 0.7944 GB, free: 3.645 MB / 0.698 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.165999406017363]