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.001707/0.001707, allocations: 77.62 kB / 19.18 MB, free: 2.527 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.002023/0.002023, allocations: 167.8 kB / 22.46 MB, free: 5.359 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.492/1.492, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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 3.143/3.143, allocations: 389 MB / 0.633 GB, free: 0.9961 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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 1.733e-06/1.733e-06, allocations: 0 / 1 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.43e-05/2.603e-05, allocations: 6.281 kB / 1 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002898/0.002924, allocations: 1.583 MB / 1.002 GB, free: 5.652 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001027/0.003951, allocations: 490.7 kB / 1.002 GB, free: 5.168 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.545e-05/0.004026, allocations: 0 / 1.002 GB, free: 5.168 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.176e-05/0.004058, allocations: 3.938 kB / 1.002 GB, free: 5.164 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.052e-05/0.004139, allocations: 15.86 kB / 1.002 GB, free: 5.148 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002626/0.004401, allocations: 39.83 kB / 1.002 GB, free: 5.109 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.00455, allocations: 75.77 kB / 1.002 GB, free: 5.035 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.004653, allocations: 7.984 kB / 1.002 GB, free: 5.027 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.00483, allocations: 51.95 kB / 1.002 GB, free: 4.977 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.882e-05/0.004909, allocations: 27.89 kB / 1.002 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.004937, allocations: 8 kB / 1.002 GB, free: 4.941 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.899e-05/0.004986, allocations: 8 kB / 1.002 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.879e-05/0.005015, allocations: 19.92 kB / 1.002 GB, free: 4.914 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.911e-05/0.005064, allocations: 23.97 kB / 1.002 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.005221, allocations: 67.77 kB / 1.003 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.005224, allocations: 0 / 1.003 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.112e-06/0.005225, allocations: 3.938 kB / 1.003 GB, free: 4.82 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.00523, allocations: 0 / 1.003 GB, free: 4.82 MB / 0.9512 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.0006597/0.00589, allocations: 306.1 kB / 1.003 GB, free: 4.492 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.005931, allocations: 12.03 kB / 1.003 GB, free: 4.48 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.006088, allocations: 16.88 kB / 1.003 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.006313, allocations: 121.7 kB / 1.003 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.006342, allocations: 8.359 kB / 1.003 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.006374, allocations: 12.31 kB / 1.003 GB, free: 4.301 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.006597, allocations: 82.14 kB / 1.003 GB, free: 4.215 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.619e-06/0.006606, allocations: 192 / 1.003 GB, free: 4.215 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.006619, allocations: 4.375 kB / 1.003 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.006626, allocations: 3.938 kB / 1.003 GB, free: 4.207 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.006763, allocations: 43.97 kB / 1.003 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000523/0.007286, allocations: 256.5 kB / 1.003 GB, free: 3.883 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.007578, allocations: 86.58 kB / 1.003 GB, free: 3.789 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.007684, allocations: 32.84 kB / 1.003 GB, free: 3.754 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.007696, allocations: 0 / 1.003 GB, free: 3.754 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.007923, allocations: 123.2 kB / 1.004 GB, free: 3.621 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.007925, allocations: 0 / 1.004 GB, free: 3.621 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0004175/0.008342, allocations: 173.5 kB / 1.004 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.008386, allocations: 55.41 kB / 1.004 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.008492, allocations: 109.8 kB / 1.004 GB, free: 3.262 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.008518, allocations: 37.62 kB / 1.004 GB, free: 3.219 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.00858, allocations: 96.27 kB / 1.004 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.767e-05/0.008618, allocations: 27.97 kB / 1.004 GB, free: 3.09 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.656e-05/0.008674, allocations: 33.7 kB / 1.004 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.008813, allocations: 318.8 kB / 1.004 GB, free: 2.73 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.49e-05/0.008897, allocations: 27.98 kB / 1.004 GB, free: 2.703 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.532e-05/0.008993, allocations: 52.08 kB / 1.004 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.009148, allocations: 73.98 kB / 1.005 GB, free: 2.57 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.00915, allocations: 0 / 1.005 GB, free: 2.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002187/0.009369, allocations: 109.6 kB / 1.005 GB, free: 2.457 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.009382, allocations: 12 kB / 1.005 GB, free: 2.445 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.009387, allocations: 4.312 kB / 1.005 GB, free: 2.441 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.009401, allocations: 3.938 kB / 1.005 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.664e-05/0.009478, allocations: 15.98 kB / 1.005 GB, free: 2.422 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.009483, allocations: 0 / 1.005 GB, free: 2.422 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.739e-05/0.00957, allocations: 23.86 kB / 1.005 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.00958, allocations: 4 kB / 1.005 GB, free: 2.395 MB / 0.9512 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 9.879e-05/0.009679, allocations: 116.6 kB / 1.005 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.009701, allocations: 11.89 kB / 1.005 GB, free: 2.262 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.009733, allocations: 20.44 kB / 1.005 GB, free: 2.242 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.009734, allocations: 3.938 kB / 1.005 GB, free: 2.238 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.009739, allocations: 0 / 1.005 GB, free: 2.238 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.009745, allocations: 3.984 kB / 1.005 GB, free: 2.234 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.009882, allocations: 129.3 kB / 1.005 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.009883, allocations: 0 / 1.005 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.408e-05/0.009957, allocations: 11.98 kB / 1.005 GB, free: 2.066 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.009961, allocations: 3.938 kB / 1.005 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.009976, allocations: 4 kB / 1.005 GB, free: 2.059 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.185e-06/0.009979, allocations: 3.984 kB / 1.005 GB, free: 2.055 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.00998, allocations: 0 / 1.005 GB, free: 2.055 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004051/0.01039, allocations: 213 kB / 1.005 GB, free: 1.828 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.392e-05/0.0104, allocations: 7.984 kB / 1.005 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.135e-05/0.01043, allocations: 19.86 kB / 1.005 GB, free: 1.801 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.144e-05/0.0105, allocations: 4 kB / 1.005 GB, free: 1.797 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.584e-05/0.01057, allocations: 15.97 kB / 1.005 GB, free: 1.781 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.01058, allocations: 7.984 kB / 1.005 GB, free: 1.773 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.689e-05/0.01064, allocations: 87.28 kB / 1.005 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of sort global known variables: time 7e-08/0.01064, allocations: 0 / 1.005 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002224/0.01086, allocations: 20 kB / 1.005 GB, free: 1.668 MB / 0.9512 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.0001418/0.011, allocations: 103.3 kB / 1.005 GB, free: 1.555 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002364/0.01124, allocations: 83.89 kB / 1.006 GB, free: 1.473 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.01124, allocations: 3.938 kB / 1.006 GB, free: 1.469 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.01137, allocations: 51.92 kB / 1.006 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.01159, allocations: 11.98 kB / 1.006 GB, free: 1.406 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005205/0.01211, allocations: 245.4 kB / 1.006 GB, free: 1.137 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.299e-05/0.01218, allocations: 71.33 kB / 1.006 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.339e-05/0.01222, allocations: 12.73 kB / 1.006 GB, free: 1.035 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.972e-05/0.01226, allocations: 20.42 kB / 1.006 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of SimCode: time 3.71e-07/0.01226, allocations: 0 / 1.006 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of Templates: time 0.00409/0.01635, allocations: 1.109 MB / 1.007 GB, free: 15.92 MB / 0.9669 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.466380581259727]