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.001384/0.001384, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001041/0.001041, allocations: 181 kB / 24.09 MB, free: 420 kB / 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.93/0.93, allocations: 177.1 MB / 204.5 MB, free: 5.523 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.742/1.742, allocations: 359 MB / 0.6055 GB, free: 10.88 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 1.142e-06/1.142e-06, allocations: 0 / 0.7876 GB, free: 12.16 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.528e-05/1.642e-05, allocations: 2.312 kB / 0.7876 GB, free: 12.16 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00226/0.002276, allocations: 1.635 MB / 0.7892 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0006195/0.002896, allocations: 500 kB / 0.7896 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.194e-05/0.002948, allocations: 1.25 kB / 0.7896 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.426e-05/0.002972, allocations: 3.938 kB / 0.7896 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 5.601e-05/0.003028, allocations: 17.55 kB / 0.7897 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001668/0.003195, allocations: 43.77 kB / 0.7897 GB, free: 9.98 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.911e-05/0.003284, allocations: 71.83 kB / 0.7898 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.071e-05/0.003355, allocations: 11.92 kB / 0.7898 GB, free: 9.898 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.003472, allocations: 48.86 kB / 0.7898 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.276e-05/0.003535, allocations: 23.91 kB / 0.7899 GB, free: 9.828 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.501e-05/0.00355, allocations: 9.062 kB / 0.7899 GB, free: 9.82 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 3.59e-05/0.003586, allocations: 11.98 kB / 0.7899 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.003602, allocations: 15.98 kB / 0.7899 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.84e-05/0.003631, allocations: 25.22 kB / 0.7899 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 9.672e-05/0.003727, allocations: 55.75 kB / 0.79 GB, free: 9.715 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.00373, allocations: 4 kB / 0.79 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.92e-07/0.003731, allocations: 1.594 kB / 0.79 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.226e-06/0.003734, allocations: 0 / 0.79 GB, free: 9.711 MB / 0.7448 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.0003517/0.004086, allocations: 400.4 kB / 0.7904 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.004121, allocations: 9.562 kB / 0.7904 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.004222, allocations: 20.92 kB / 0.7904 GB, free: 9.258 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.004329, allocations: 124.5 kB / 0.7905 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.004344, allocations: 8.375 kB / 0.7905 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.00436, allocations: 7.094 kB / 0.7905 GB, free: 9.098 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.004741, allocations: 86.84 kB / 0.7906 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.004747, allocations: 192 / 0.7906 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.004755, allocations: 4.359 kB / 0.7906 GB, free: 9 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.004761, allocations: 3.938 kB / 0.7906 GB, free: 8.996 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.297e-05/0.004794, allocations: 15.98 kB / 0.7906 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002726/0.005067, allocations: 284.9 kB / 0.7909 GB, free: 8.676 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.005194, allocations: 76.67 kB / 0.791 GB, free: 8.59 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.468e-05/0.005218, allocations: 27.67 kB / 0.791 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.005232, allocations: 0 / 0.791 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001148/0.005346, allocations: 110.8 kB / 0.7911 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 9.42e-07/0.005347, allocations: 0 / 0.7911 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.0001861/0.005533, allocations: 141.5 kB / 0.7912 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.005559, allocations: 56.53 kB / 0.7913 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.478e-05/0.005624, allocations: 173.8 kB / 0.7915 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.005635, allocations: 25.7 kB / 0.7915 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.294e-05/0.005678, allocations: 145 kB / 0.7916 GB, free: 7.863 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.005701, allocations: 23.84 kB / 0.7916 GB, free: 7.84 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/0.005737, allocations: 35.34 kB / 0.7917 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.005838, allocations: 496.1 kB / 0.7921 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.767e-05/0.005856, allocations: 11.98 kB / 0.7922 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.249e-05/0.005889, allocations: 42.5 kB / 0.7922 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.891e-05/0.005937, allocations: 51.23 kB / 0.7922 GB, free: 7.184 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.00594, allocations: 4.531 kB / 0.7923 GB, free: 7.18 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 8.358e-05/0.006024, allocations: 85.58 kB / 0.7923 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.006036, allocations: 8.656 kB / 0.7923 GB, free: 7.082 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.00604, allocations: 4.516 kB / 0.7923 GB, free: 7.078 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.886e-06/0.006049, allocations: 0 / 0.7923 GB, free: 7.078 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.181e-05/0.006091, allocations: 13.41 kB / 0.7924 GB, free: 7.066 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.936e-06/0.006094, allocations: 0 / 0.7924 GB, free: 7.066 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.244e-05/0.006126, allocations: 15.89 kB / 0.7924 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.006132, allocations: 4.516 kB / 0.7924 GB, free: 7.047 MB / 0.7448 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.048e-05/0.006203, allocations: 168.1 kB / 0.7925 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.006218, allocations: 15.89 kB / 0.7926 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.206e-05/0.00624, allocations: 12.44 kB / 0.7926 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.006243, allocations: 5.141 kB / 0.7926 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.006245, allocations: 0 / 0.7926 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.006248, allocations: 3.938 kB / 0.7926 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.943e-05/0.006327, allocations: 126.6 kB / 0.7927 GB, free: 6.691 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.006329, allocations: 0 / 0.7927 GB, free: 6.691 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.713e-05/0.006366, allocations: 7.984 kB / 0.7927 GB, free: 6.684 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.006368, allocations: 4 kB / 0.7927 GB, free: 6.68 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.006377, allocations: 4.844 kB / 0.7927 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.006378, allocations: 3.938 kB / 0.7927 GB, free: 6.672 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.00638, allocations: 4.891 kB / 0.7927 GB, free: 6.668 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.006549, allocations: 176.3 kB / 0.7929 GB, free: 6.473 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.893e-06/0.006556, allocations: 9.297 kB / 0.7929 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.006568, allocations: 3.938 kB / 0.7929 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.713e-05/0.006595, allocations: 15.92 kB / 0.7929 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.006629, allocations: 11.97 kB / 0.7929 GB, free: 6.434 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.006636, allocations: 8.656 kB / 0.7929 GB, free: 6.426 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.406e-05/0.00667, allocations: 127.7 kB / 0.7931 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of sort global known variables: time 4e-08/0.00667, allocations: 0 / 0.7931 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001229/0.006793, allocations: 21.91 kB / 0.7931 GB, free: 6.281 MB / 0.7448 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 7.659e-05/0.00687, allocations: 99.25 kB / 0.7932 GB, free: 6.172 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.239e-05/0.006962, allocations: 68.22 kB / 0.7932 GB, free: 6.102 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 9.22e-07/0.006963, allocations: 0.875 kB / 0.7932 GB, free: 6.102 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.36e-05/0.007007, allocations: 43.61 kB / 0.7933 GB, free: 6.055 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.007133, allocations: 19.86 kB / 0.7933 GB, free: 6.039 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004135/0.007547, allocations: 251 kB / 0.7935 GB, free: 5.781 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.561e-05/0.007582, allocations: 67.28 kB / 0.7936 GB, free: 5.695 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.033e-05/0.007613, allocations: 10.94 kB / 0.7936 GB, free: 5.688 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.751e-05/0.00767, allocations: 78.2 kB / 0.7937 GB, free: 5.609 MB / 0.7448 GB Notification: Performance of SimCode: time 1.002e-06/0.007671, allocations: 4.031 kB / 0.7937 GB, free: 5.605 MB / 0.7448 GB Notification: Performance of Templates: time 0.00255/0.01022, allocations: 1.236 MB / 0.7949 GB, free: 4.391 MB / 0.7448 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: 4.821421577129513]