Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008401/0.0008401, allocations: 88.22 kB / 19.65 MB, free: 272 kB / 13.93 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.0008987/0.0008987, allocations: 177 kB / 23.03 MB, free: 1.535 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.9335/0.9335, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.07/2.07, allocations: 429.5 MB / 0.6732 GB, free: 4.043 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 0.8782 GB, free: 6.293 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.896e-05/3.106e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.289 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003007/0.003038, allocations: 1.646 MB / 0.8798 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0008502/0.003888, allocations: 0.4908 MB / 0.8803 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.704e-05/0.003945, allocations: 4 kB / 0.8803 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.017e-05/0.003975, allocations: 3.938 kB / 0.8803 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.862e-05/0.004044, allocations: 16.78 kB / 0.8803 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000244/0.004288, allocations: 44.95 kB / 0.8803 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.004425, allocations: 75.77 kB / 0.8804 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.936e-05/0.004515, allocations: 5.125 kB / 0.8804 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.004666, allocations: 47.89 kB / 0.8805 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.172e-05/0.004747, allocations: 31.89 kB / 0.8805 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.004767, allocations: 5.031 kB / 0.8805 GB, free: 3.934 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.299e-05/0.00483, allocations: 8 kB / 0.8805 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.098e-05/0.004861, allocations: 19.97 kB / 0.8805 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.131e-05/0.004902, allocations: 24.89 kB / 0.8805 GB, free: 3.883 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.005032, allocations: 55.75 kB / 0.8806 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.005035, allocations: 5.656 kB / 0.8806 GB, free: 3.824 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.52e-07/0.005036, allocations: 0 / 0.8806 GB, free: 3.824 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.005041, allocations: 0 / 0.8806 GB, free: 3.824 MB / 0.8386 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.0004119/0.005453, allocations: 400.4 kB / 0.881 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.005489, allocations: 8.531 kB / 0.881 GB, free: 3.391 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.005597, allocations: 22.77 kB / 0.881 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.005737, allocations: 124.5 kB / 0.8811 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.005757, allocations: 8.375 kB / 0.8811 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/0.005784, allocations: 8.375 kB / 0.8812 GB, free: 3.207 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.005914, allocations: 84.19 kB / 0.8812 GB, free: 3.117 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.005921, allocations: 4.188 kB / 0.8812 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.005933, allocations: 8.359 kB / 0.8812 GB, free: 3.105 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.005941, allocations: 3.938 kB / 0.8812 GB, free: 3.102 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.677e-05/0.005988, allocations: 21.08 kB / 0.8813 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003419/0.00633, allocations: 309.2 kB / 0.8816 GB, free: 2.746 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.006501, allocations: 83.02 kB / 0.8816 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.543e-05/0.006536, allocations: 23.69 kB / 0.8817 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.006549, allocations: 3.984 kB / 0.8817 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001308/0.006679, allocations: 111.4 kB / 0.8818 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.006681, allocations: 96 / 0.8818 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002283/0.006909, allocations: 153.5 kB / 0.8819 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.006941, allocations: 51.41 kB / 0.882 GB, free: 2.281 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.336e-05/0.007014, allocations: 180.2 kB / 0.8821 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.007026, allocations: 25.7 kB / 0.8822 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.495e-05/0.007071, allocations: 135.1 kB / 0.8823 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.007098, allocations: 27.95 kB / 0.8823 GB, free: 1.891 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.007135, allocations: 35.36 kB / 0.8824 GB, free: 1.848 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.007243, allocations: 0.493 MB / 0.8828 GB, free: 1.344 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.698e-05/0.00727, allocations: 12 kB / 0.8828 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.397e-05/0.007314, allocations: 52.44 kB / 0.8829 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.014e-05/0.007374, allocations: 47.75 kB / 0.8829 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.007376, allocations: 3.938 kB / 0.8829 GB, free: 1.215 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001018/0.007478, allocations: 101.5 kB / 0.883 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.007489, allocations: 4 kB / 0.883 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.007493, allocations: 0 / 0.883 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.007505, allocations: 4 kB / 0.8831 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.873e-05/0.007554, allocations: 11.98 kB / 0.8831 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.84e-06/0.007558, allocations: 0 / 0.8831 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.219e-05/0.007591, allocations: 11.94 kB / 0.8831 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.007598, allocations: 4 kB / 0.8831 GB, free: 1.074 MB / 0.8386 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.929e-05/0.007677, allocations: 164.5 kB / 0.8832 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.007694, allocations: 23.88 kB / 0.8833 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.297e-05/0.007717, allocations: 12.44 kB / 0.8833 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.00772, allocations: 4 kB / 0.8833 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.007723, allocations: 0 / 0.8833 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.007726, allocations: 0 / 0.8833 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.401e-05/0.00782, allocations: 136.6 kB / 0.8834 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.007822, allocations: 4 kB / 0.8834 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.723e-05/0.007859, allocations: 15.92 kB / 0.8834 GB, free: 0.6758 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.007861, allocations: 3.938 kB / 0.8834 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.007872, allocations: 4 kB / 0.8834 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.007873, allocations: 0 / 0.8834 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.007874, allocations: 4 kB / 0.8834 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002002/0.008074, allocations: 192.3 kB / 0.8836 GB, free: 464 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-06/0.008081, allocations: 0 / 0.8836 GB, free: 464 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.008097, allocations: 7.938 kB / 0.8836 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.555e-05/0.008123, allocations: 11.98 kB / 0.8836 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.008167, allocations: 7.984 kB / 0.8836 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.008177, allocations: 15.92 kB / 0.8837 GB, free: 420 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.787e-05/0.008215, allocations: 131.2 kB / 0.8838 GB, free: 288 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.008215, allocations: 0 / 0.8838 GB, free: 288 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001275/0.008342, allocations: 20 kB / 0.8838 GB, free: 268 kB / 0.8386 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.907e-05/0.008421, allocations: 110.6 kB / 0.8839 GB, free: 152 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001232/0.008545, allocations: 67.64 kB / 0.884 GB, free: 80 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.042e-06/0.008546, allocations: 0 / 0.884 GB, free: 80 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.653e-05/0.008602, allocations: 47.61 kB / 0.884 GB, free: 28 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001481/0.00875, allocations: 19.98 kB / 0.884 GB, free: 8 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005105/0.009261, allocations: 254.4 kB / 0.8843 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.633e-05/0.009297, allocations: 63.34 kB / 0.8843 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3e-05/0.009327, allocations: 8.734 kB / 0.8844 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.009361, allocations: 24.42 kB / 0.8844 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of SimCode: time 7.01e-07/0.009361, allocations: 0 / 0.8844 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of Templates: time 0.002707/0.01207, allocations: 1.194 MB / 0.8855 GB, free: 14.45 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.214665774721652]