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.001057/0.001057, allocations: 80.88 kB / 19.94 MB, free: 4.547 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.001386/0.001386, allocations: 181 kB / 23.36 MB, free: 1.133 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 1.003/1.003, allocations: 177.2 MB / 203.8 MB, free: 5.488 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.57/2.57, allocations: 438.8 MB / 0.6827 GB, free: 13.57 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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 1.553e-06/1.553e-06, allocations: 0 / 0.8386 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.605e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00233/0.002356, allocations: 1.679 MB / 0.8403 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.000766/0.003122, allocations: 0.4986 MB / 0.8408 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.74e-05/0.003179, allocations: 4 kB / 0.8408 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.687e-05/0.003206, allocations: 3.938 kB / 0.8408 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.721e-05/0.003273, allocations: 15.86 kB / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.003468, allocations: 43.81 kB / 0.8408 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.003577, allocations: 71.78 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.834e-05/0.003655, allocations: 11.97 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.003796, allocations: 47.91 kB / 0.841 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.651e-05/0.003863, allocations: 23.95 kB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.802e-05/0.003881, allocations: 12 kB / 0.841 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.55e-05/0.003936, allocations: 8 kB / 0.841 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.991e-05/0.003956, allocations: 23.91 kB / 0.841 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.98e-05/0.003986, allocations: 19.92 kB / 0.841 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.004088, allocations: 51.81 kB / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.00409, allocations: 0 / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of FrontEnd: time 9.12e-07/0.004091, allocations: 0 / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.004096, allocations: 4 kB / 0.8411 GB, free: 11.6 MB / 0.8073 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.0003435/0.004439, allocations: 272.7 kB / 0.8414 GB, free: 11.31 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.004473, allocations: 8.031 kB / 0.8414 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.00458, allocations: 24.91 kB / 0.8414 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.004718, allocations: 117.7 kB / 0.8415 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.004735, allocations: 12.3 kB / 0.8415 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.004753, allocations: 8.375 kB / 0.8415 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.004859, allocations: 90.84 kB / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.004866, allocations: 192 / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.004873, allocations: 384 / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.004879, allocations: 3.938 kB / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.681e-05/0.004916, allocations: 23.98 kB / 0.8416 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002582/0.005174, allocations: 192.1 kB / 0.8418 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.005301, allocations: 58.56 kB / 0.8419 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.337e-05/0.005325, allocations: 20.86 kB / 0.8419 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.005335, allocations: 0 / 0.8419 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001213/0.005457, allocations: 91.56 kB / 0.842 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.223e-06/0.005458, allocations: 3.938 kB / 0.842 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0001445/0.005602, allocations: 109.5 kB / 0.8421 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001819/0.005784, allocations: 59.41 kB / 0.8421 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.243e-05/0.005837, allocations: 110.7 kB / 0.8423 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.005851, allocations: 33.7 kB / 0.8423 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.998e-05/0.005881, allocations: 92.3 kB / 0.8424 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.817e-05/0.005909, allocations: 23.84 kB / 0.8424 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.005942, allocations: 33.69 kB / 0.8424 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.752e-05/0.00601, allocations: 314.8 kB / 0.8427 GB, free: 9.773 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.849e-05/0.006028, allocations: 11.98 kB / 0.8427 GB, free: 9.762 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.949e-05/0.006058, allocations: 33.14 kB / 0.8428 GB, free: 9.727 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.883e-05/0.006106, allocations: 46.06 kB / 0.8428 GB, free: 9.676 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.006108, allocations: 4 kB / 0.8428 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 8.376e-05/0.006192, allocations: 81.58 kB / 0.8429 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.006206, allocations: 11.88 kB / 0.8429 GB, free: 9.574 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.006211, allocations: 0 / 0.8429 GB, free: 9.574 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.006223, allocations: 0 / 0.8429 GB, free: 9.574 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.436e-05/0.006277, allocations: 15.98 kB / 0.8429 GB, free: 9.559 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.925e-06/0.00628, allocations: 0 / 0.8429 GB, free: 9.559 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.209e-05/0.006312, allocations: 15.89 kB / 0.8429 GB, free: 9.543 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.006319, allocations: 4 kB / 0.8429 GB, free: 9.539 MB / 0.8073 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 6.091e-05/0.00638, allocations: 121.8 kB / 0.8431 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.006391, allocations: 7.984 kB / 0.8431 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.094e-05/0.006412, allocations: 20.38 kB / 0.8431 GB, free: 9.387 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.006414, allocations: 0 / 0.8431 GB, free: 9.387 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.006416, allocations: 3.984 kB / 0.8431 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.006419, allocations: 0 / 0.8431 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.399e-05/0.006493, allocations: 81.88 kB / 0.8432 GB, free: 9.285 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.006494, allocations: 0 / 0.8432 GB, free: 9.285 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.021e-05/0.006534, allocations: 8 kB / 0.8432 GB, free: 9.277 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.006535, allocations: 0 / 0.8432 GB, free: 9.277 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.006546, allocations: 11.98 kB / 0.8432 GB, free: 9.266 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.006547, allocations: 4 kB / 0.8432 GB, free: 9.262 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.006548, allocations: 3.938 kB / 0.8432 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.006695, allocations: 136.9 kB / 0.8433 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-06/0.006705, allocations: 7.953 kB / 0.8433 GB, free: 9.098 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.00672, allocations: 8 kB / 0.8433 GB, free: 9.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.42e-05/0.006745, allocations: 7.984 kB / 0.8433 GB, free: 9.082 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.728e-05/0.006782, allocations: 15.91 kB / 0.8434 GB, free: 9.066 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.006788, allocations: 8 kB / 0.8434 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.601e-05/0.006804, allocations: 21.16 kB / 0.8434 GB, free: 9.035 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.006804, allocations: 0 / 0.8434 GB, free: 9.035 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001077/0.006912, allocations: 20 kB / 0.8434 GB, free: 9.016 MB / 0.8073 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 8.921e-05/0.007001, allocations: 87.77 kB / 0.8435 GB, free: 8.922 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.74e-05/0.007089, allocations: 56.83 kB / 0.8435 GB, free: 8.863 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.007091, allocations: 0 / 0.8435 GB, free: 8.863 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.506e-05/0.007136, allocations: 44.77 kB / 0.8436 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001068/0.007243, allocations: 15.92 kB / 0.8436 GB, free: 8.801 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004608/0.007704, allocations: 241.2 kB / 0.8438 GB, free: 8.539 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.23e-05/0.007736, allocations: 64.19 kB / 0.8439 GB, free: 8.457 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.46e-05/0.007771, allocations: 12.72 kB / 0.8439 GB, free: 8.445 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.635e-05/0.007827, allocations: 59.38 kB / 0.844 GB, free: 8.387 MB / 0.8073 GB Notification: Performance of SimCode: time 9.32e-07/0.007828, allocations: 0 / 0.844 GB, free: 8.387 MB / 0.8073 GB Notification: Performance of Templates: time 0.002708/0.01054, allocations: 1.218 MB / 0.8452 GB, free: 7.18 MB / 0.8073 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 -s gbode -gbm=radauIIA3 -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.528712563216686]