Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001062/0.001062, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001485/0.002547, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009911/0.0009911, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001279/0.00227, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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.016/1.016, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09403/1.11, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.828/1.828, allocations: 378.2 MB / 0.6076 GB, free: 7.824 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.485/2.313, allocations: 123.3 MB / 0.728 GB, free: 5.785 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 0.7293 GB, free: 4.484 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.945e-05/2.078e-05, allocations: 5.969 kB / 0.7293 GB, free: 4.48 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003258/0.003279, allocations: 1.678 MB / 0.731 GB, free: 2.816 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0008562/0.004135, allocations: 0.502 MB / 0.7315 GB, free: 2.316 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.208e-05/0.004197, allocations: 1.094 kB / 0.7315 GB, free: 2.316 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.96e-05/0.004227, allocations: 3.938 kB / 0.7315 GB, free: 2.312 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 5.293e-05/0.004279, allocations: 9.391 kB / 0.7315 GB, free: 2.309 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.004485, allocations: 44.69 kB / 0.7315 GB, free: 2.266 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.004622, allocations: 71.55 kB / 0.7316 GB, free: 2.207 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 9.155e-05/0.004713, allocations: 16.86 kB / 0.7316 GB, free: 2.191 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.004916, allocations: 59.94 kB / 0.7317 GB, free: 2.133 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.476e-05/0.005001, allocations: 28.39 kB / 0.7317 GB, free: 2.105 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.005021, allocations: 4.875 kB / 0.7317 GB, free: 2.102 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 6.877e-05/0.00509, allocations: 12 kB / 0.7317 GB, free: 2.09 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.229e-05/0.005112, allocations: 15.92 kB / 0.7317 GB, free: 2.074 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.399e-05/0.005146, allocations: 13.44 kB / 0.7317 GB, free: 2.062 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.00528, allocations: 47.78 kB / 0.7318 GB, free: 2.016 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.833e-05/0.005298, allocations: 0 / 0.7318 GB, free: 2.016 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.092e-06/0.0053, allocations: 0 / 0.7318 GB, free: 2.016 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.018e-05/0.00532, allocations: 0.6562 kB / 0.7318 GB, free: 2.016 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.0005136/0.005833, allocations: 289 kB / 0.7321 GB, free: 1.711 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.00587, allocations: 13.75 kB / 0.7321 GB, free: 1.699 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.006046, allocations: 94.03 kB / 0.7322 GB, free: 1.59 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.006203, allocations: 117.8 kB / 0.7323 GB, free: 1.449 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.006229, allocations: 12.31 kB / 0.7323 GB, free: 1.438 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.00625, allocations: 5.438 kB / 0.7323 GB, free: 1.434 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.006387, allocations: 86.83 kB / 0.7324 GB, free: 1.34 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.006396, allocations: 192 / 0.7324 GB, free: 1.34 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.006407, allocations: 6.25 kB / 0.7324 GB, free: 1.336 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.556e-05/0.006453, allocations: 3.938 kB / 0.7324 GB, free: 1.332 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.946e-05/0.006502, allocations: 15.98 kB / 0.7324 GB, free: 1.316 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003437/0.006846, allocations: 188.1 kB / 0.7326 GB, free: 1.117 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000177/0.007023, allocations: 71.52 kB / 0.7327 GB, free: 1.039 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.395e-05/0.007057, allocations: 24.84 kB / 0.7327 GB, free: 1.012 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.007071, allocations: 0.6562 kB / 0.7327 GB, free: 1.012 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.007237, allocations: 105.1 kB / 0.7328 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 2.004e-06/0.007239, allocations: 0 / 0.7328 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0001819/0.007421, allocations: 98.28 kB / 0.7329 GB, free: 0.7969 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.007463, allocations: 51.41 kB / 0.7329 GB, free: 0.7344 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.299e-05/0.007536, allocations: 128.4 kB / 0.733 GB, free: 0.5977 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.007552, allocations: 25.7 kB / 0.7331 GB, free: 0.5664 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.696e-05/0.007589, allocations: 92.3 kB / 0.7332 GB, free: 484 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.007631, allocations: 31.73 kB / 0.7332 GB, free: 452 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.00768, allocations: 25.7 kB / 0.7332 GB, free: 420 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.218e-05/0.007772, allocations: 323.7 kB / 0.7335 GB, free: 88 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.279e-05/0.007795, allocations: 11.94 kB / 0.7335 GB, free: 76 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.863e-05/0.007834, allocations: 34.28 kB / 0.7336 GB, free: 36 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.557e-05/0.007919, allocations: 41.69 kB / 0.7336 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.007922, allocations: 1.062 kB / 0.7336 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001145/0.008036, allocations: 69.61 kB / 0.7337 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.008052, allocations: 8.688 kB / 0.7337 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.00806, allocations: 8 kB / 0.7337 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.008071, allocations: 0.7188 kB / 0.7337 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.453e-05/0.008146, allocations: 15.98 kB / 0.7337 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.008151, allocations: 4.469 kB / 0.7337 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.156e-05/0.008192, allocations: 9.031 kB / 0.7337 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.008199, allocations: 3.984 kB / 0.7337 GB, free: 15.87 MB / 0.7136 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 8.616e-05/0.008286, allocations: 118.9 kB / 0.7338 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/0.008305, allocations: 15.92 kB / 0.7338 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.302e-05/0.008338, allocations: 20.38 kB / 0.7339 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.00834, allocations: 0.5312 kB / 0.7339 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.008342, allocations: 1.781 kB / 0.7339 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.008346, allocations: 0 / 0.7339 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.008449, allocations: 81.88 kB / 0.7339 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.008451, allocations: 0 / 0.7339 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.846e-05/0.008519, allocations: 15.98 kB / 0.734 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.076e-05/0.00853, allocations: 9.172 kB / 0.734 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.008532, allocations: 0 / 0.734 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.008543, allocations: 11.86 kB / 0.734 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.008546, allocations: 4.75 kB / 0.734 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.008547, allocations: 0 / 0.734 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002173/0.008765, allocations: 126.3 kB / 0.7341 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.008781, allocations: 8 kB / 0.7341 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.515e-05/0.008806, allocations: 0.75 kB / 0.7341 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.008844, allocations: 25.44 kB / 0.7341 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.008852, allocations: 7.984 kB / 0.7341 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.43e-05/0.008866, allocations: 16.84 kB / 0.7342 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.008866, allocations: 0 / 0.7342 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001048/0.008971, allocations: 23.94 kB / 0.7342 GB, free: 15.34 MB / 0.7136 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 9.465e-05/0.009065, allocations: 90.03 kB / 0.7343 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.691e-05/0.009152, allocations: 52.78 kB / 0.7343 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.009156, allocations: 0.625 kB / 0.7343 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.208e-05/0.009199, allocations: 44.77 kB / 0.7344 GB, free: 15.15 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001096/0.009308, allocations: 25 kB / 0.7344 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008309/0.01014, allocations: 211.4 kB / 0.7346 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.947e-05/0.01017, allocations: 67.28 kB / 0.7347 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.978e-05/0.01021, allocations: 15.59 kB / 0.7347 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.411e-05/0.01026, allocations: 63.38 kB / 0.7347 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of SimCode: time 6.51e-07/0.01026, allocations: 0 / 0.7347 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of Templates: time 0.002813/0.01308, allocations: 1.231 MB / 0.7359 GB, free: 13.57 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.ref.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.0633963998407125]