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.001399/0.001399, allocations: 88.72 kB / 19.44 MB, free: 356 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.001611/0.001611, allocations: 161.7 kB / 22.76 MB, free: 1.68 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.479/1.479, allocations: 177.2 MB / 203.1 MB, free: 5.594 MB / 186.7 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.457/3.457, allocations: 429.6 MB / 0.673 GB, free: 3.891 MB / 0.6355 GB " [Timeout remaining time 176] 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 1.593e-06/1.593e-06, allocations: 0 / 0.8776 GB, free: 6.441 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.727e-05/2.887e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.438 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003086/0.003115, allocations: 1.603 MB / 0.8792 GB, free: 4.848 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001515/0.00463, allocations: 488.4 kB / 0.8796 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.753e-05/0.004707, allocations: 0 / 0.8796 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.664e-05/0.004744, allocations: 3.938 kB / 0.8796 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.067e-05/0.004835, allocations: 21.56 kB / 0.8797 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.005143, allocations: 39.89 kB / 0.8797 GB, free: 4.305 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.005321, allocations: 75.72 kB / 0.8798 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.005424, allocations: 13 kB / 0.8798 GB, free: 4.219 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.005617, allocations: 43.97 kB / 0.8798 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.276e-05/0.005709, allocations: 29.02 kB / 0.8799 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.005732, allocations: 4 kB / 0.8799 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.31e-05/0.005785, allocations: 8 kB / 0.8799 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.254e-05/0.005817, allocations: 24.94 kB / 0.8799 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.693e-05/0.005884, allocations: 19.98 kB / 0.8799 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.006049, allocations: 71.77 kB / 0.88 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.006052, allocations: 1.125 kB / 0.88 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.81e-07/0.006053, allocations: 0 / 0.88 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.006057, allocations: 0 / 0.88 GB, free: 4.023 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.0006269/0.006683, allocations: 307 kB / 0.8803 GB, free: 3.695 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.006722, allocations: 8.75 kB / 0.8803 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.00691, allocations: 26.53 kB / 0.8803 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.00716, allocations: 129.6 kB / 0.8804 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.007189, allocations: 8.375 kB / 0.8804 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.00722, allocations: 4.375 kB / 0.8804 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.007435, allocations: 86.62 kB / 0.8805 GB, free: 3.41 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.007445, allocations: 6.062 kB / 0.8805 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.007464, allocations: 8.359 kB / 0.8805 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.007471, allocations: 3.938 kB / 0.8805 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.00761, allocations: 39.97 kB / 0.8806 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.008157, allocations: 245.7 kB / 0.8808 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.008432, allocations: 84.17 kB / 0.8809 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.008532, allocations: 36.83 kB / 0.8809 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.008548, allocations: 4 kB / 0.8809 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.008813, allocations: 121.6 kB / 0.881 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.008814, allocations: 0 / 0.881 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0004544/0.009268, allocations: 181.5 kB / 0.8812 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.009326, allocations: 57.47 kB / 0.8813 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.00944, allocations: 113.8 kB / 0.8814 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.009472, allocations: 33.7 kB / 0.8814 GB, free: 2.414 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.963e-05/0.009542, allocations: 88.31 kB / 0.8815 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.347e-05/0.009585, allocations: 31.94 kB / 0.8815 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-05/0.009648, allocations: 33.7 kB / 0.8816 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001879/0.009836, allocations: 322.8 kB / 0.8819 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.493e-05/0.009931, allocations: 27.98 kB / 0.8819 GB, free: 1.898 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.01004, allocations: 49.69 kB / 0.8819 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.01022, allocations: 69.64 kB / 0.882 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.01022, allocations: 0 / 0.882 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002689/0.01049, allocations: 121.5 kB / 0.8821 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.0105, allocations: 4 kB / 0.8821 GB, free: 1.641 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.01051, allocations: 0 / 0.8821 GB, free: 1.641 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.01053, allocations: 8 kB / 0.8821 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.877e-05/0.01062, allocations: 12 kB / 0.8821 GB, free: 1.621 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.01063, allocations: 0 / 0.8821 GB, free: 1.621 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.477e-05/0.01072, allocations: 19.86 kB / 0.8822 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.01073, allocations: 4 kB / 0.8822 GB, free: 1.598 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 0.0001321/0.01086, allocations: 128.3 kB / 0.8823 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.0109, allocations: 19.88 kB / 0.8823 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.321e-05/0.01093, allocations: 8.438 kB / 0.8823 GB, free: 1.438 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.01093, allocations: 0 / 0.8823 GB, free: 1.438 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.01094, allocations: 4 kB / 0.8823 GB, free: 1.434 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01094, allocations: 4 kB / 0.8823 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.01111, allocations: 129.2 kB / 0.8825 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.01111, allocations: 0 / 0.8825 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.06e-05/0.01119, allocations: 11.98 kB / 0.8825 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.0112, allocations: 7.938 kB / 0.8825 GB, free: 1.254 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.01122, allocations: 4 kB / 0.8825 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.01122, allocations: 0 / 0.8825 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01122, allocations: 0 / 0.8825 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000484/0.0117, allocations: 221.5 kB / 0.8827 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.637e-05/0.01172, allocations: 12 kB / 0.8827 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/0.01175, allocations: 11.97 kB / 0.8827 GB, free: 0.9922 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.781e-05/0.01183, allocations: 7.984 kB / 0.8827 GB, free: 0.9844 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.0119, allocations: 11.97 kB / 0.8827 GB, free: 0.9727 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.01191, allocations: 8 kB / 0.8827 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.121e-05/0.01198, allocations: 91.27 kB / 0.8828 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.01198, allocations: 0 / 0.8828 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002184/0.0122, allocations: 16 kB / 0.8828 GB, free: 0.8594 MB / 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 0.0001463/0.01235, allocations: 107.2 kB / 0.8829 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002544/0.0126, allocations: 91.94 kB / 0.883 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.0126, allocations: 0 / 0.883 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.01273, allocations: 55.84 kB / 0.8831 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.01295, allocations: 15.98 kB / 0.8831 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005265/0.01348, allocations: 236.7 kB / 0.8833 GB, free: 336 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.054e-05/0.01356, allocations: 79.19 kB / 0.8834 GB, free: 236 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.315e-05/0.0136, allocations: 4.734 kB / 0.8834 GB, free: 232 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.061e-05/0.01365, allocations: 24.48 kB / 0.8834 GB, free: 208 kB / 0.8386 GB Notification: Performance of SimCode: time 3.31e-07/0.01365, allocations: 0 / 0.8834 GB, free: 208 kB / 0.8386 GB Notification: Performance of Templates: time 0.004151/0.0178, allocations: 1.123 MB / 0.8845 GB, free: 15.1 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=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.303996836999431]