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.000953/0.000953, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001147/0.001147, allocations: 173.3 kB / 23.49 MB, free: 1.062 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.9589/0.9589, allocations: 177.1 MB / 203.8 MB, free: 5.652 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.064/2.064, allocations: 429.5 MB / 0.6736 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 1.532e-06/1.532e-06, allocations: 0 / 0.8782 GB, free: 6.633 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.383e-05/1.536e-05, allocations: 3.469 kB / 0.8782 GB, free: 6.629 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001777/0.001792, allocations: 1.638 MB / 0.8798 GB, free: 5.004 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0006009/0.002393, allocations: 0.4909 MB / 0.8803 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.694e-05/0.00245, allocations: 4 kB / 0.8803 GB, free: 4.508 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.569e-05/0.002476, allocations: 3.938 kB / 0.8803 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.538e-05/0.002531, allocations: 10.59 kB / 0.8803 GB, free: 4.496 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002104/0.002742, allocations: 47.81 kB / 0.8803 GB, free: 4.449 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.002852, allocations: 71.77 kB / 0.8804 GB, free: 4.379 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.03e-05/0.002942, allocations: 11.98 kB / 0.8804 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.003068, allocations: 47.89 kB / 0.8805 GB, free: 4.32 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.168e-05/0.003129, allocations: 28.61 kB / 0.8805 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.003145, allocations: 8 kB / 0.8805 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 3.924e-05/0.003185, allocations: 13.66 kB / 0.8805 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.745e-05/0.003202, allocations: 11.98 kB / 0.8805 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.728e-05/0.003239, allocations: 27.91 kB / 0.8806 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.003356, allocations: 55.81 kB / 0.8806 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.003358, allocations: 1.344 kB / 0.8806 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.71e-07/0.003358, allocations: 0 / 0.8806 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.557e-06/0.003362, allocations: 3.938 kB / 0.8806 GB, free: 4.176 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.0004183/0.00378, allocations: 400.4 kB / 0.881 GB, free: 3.75 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.003812, allocations: 8.031 kB / 0.881 GB, free: 3.742 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.003928, allocations: 28.88 kB / 0.881 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.004062, allocations: 124.5 kB / 0.8812 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.00408, allocations: 4.375 kB / 0.8812 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.004099, allocations: 4.375 kB / 0.8812 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.00423, allocations: 90.84 kB / 0.8812 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.004237, allocations: 192 / 0.8812 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.004247, allocations: 4.375 kB / 0.8813 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.004255, allocations: 7.938 kB / 0.8813 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.202e-05/0.004307, allocations: 27.97 kB / 0.8813 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003416/0.004648, allocations: 299.6 kB / 0.8816 GB, free: 3.094 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.004819, allocations: 79.03 kB / 0.8816 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.029e-05/0.004859, allocations: 31.66 kB / 0.8817 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.004871, allocations: 0 / 0.8817 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001366/0.005007, allocations: 120.8 kB / 0.8818 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 9.82e-07/0.005008, allocations: 4 kB / 0.8818 GB, free: 2.832 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002271/0.005235, allocations: 149.6 kB / 0.8819 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.005267, allocations: 55.41 kB / 0.882 GB, free: 2.613 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.395e-05/0.005341, allocations: 173.9 kB / 0.8822 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.005354, allocations: 29.7 kB / 0.8822 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.212e-05/0.005396, allocations: 135.1 kB / 0.8823 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.005423, allocations: 27.81 kB / 0.8823 GB, free: 2.223 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.543e-05/0.005458, allocations: 35.36 kB / 0.8824 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.005566, allocations: 0.4884 MB / 0.8829 GB, free: 1.68 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.844e-05/0.005594, allocations: 12 kB / 0.8829 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.188e-05/0.005636, allocations: 47.36 kB / 0.8829 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.028e-05/0.005696, allocations: 51.3 kB / 0.883 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.005698, allocations: 0 / 0.883 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001075/0.005806, allocations: 101.4 kB / 0.8831 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.005817, allocations: 4 kB / 0.8831 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.00582, allocations: 0 / 0.8831 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.005832, allocations: 4 kB / 0.8831 GB, free: 1.441 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.525e-05/0.005877, allocations: 12 kB / 0.8831 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.005882, allocations: 0 / 0.8831 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.254e-05/0.005914, allocations: 11.92 kB / 0.8831 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.005922, allocations: 8 kB / 0.8831 GB, free: 1.41 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 6.653e-05/0.005989, allocations: 167 kB / 0.8833 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.006006, allocations: 19.89 kB / 0.8833 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.922e-05/0.006025, allocations: 12.42 kB / 0.8833 GB, free: 1.207 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.006027, allocations: 4 kB / 0.8833 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.00603, allocations: 0 / 0.8833 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.006033, allocations: 0 / 0.8833 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.428e-05/0.006118, allocations: 148.7 kB / 0.8834 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.006118, allocations: 0 / 0.8834 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.441e-05/0.006153, allocations: 8 kB / 0.8834 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.006155, allocations: 7.938 kB / 0.8834 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.006166, allocations: 7.984 kB / 0.8835 GB, free: 1 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.006167, allocations: 3.938 kB / 0.8835 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.006168, allocations: 0 / 0.8835 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001963/0.006364, allocations: 188.9 kB / 0.8836 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.172e-06/0.00637, allocations: 3.984 kB / 0.8836 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.006388, allocations: 11.94 kB / 0.8836 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.384e-05/0.006412, allocations: 0 / 0.8836 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.006456, allocations: 19.97 kB / 0.8837 GB, free: 0.7539 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.006463, allocations: 7.984 kB / 0.8837 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.524e-05/0.006498, allocations: 131.2 kB / 0.8838 GB, free: 0.6172 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.006498, allocations: 0 / 0.8838 GB, free: 0.6172 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001314/0.00663, allocations: 19.94 kB / 0.8838 GB, free: 0.5977 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 7.271e-05/0.006702, allocations: 103.2 kB / 0.8839 GB, free: 500 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001174/0.00682, allocations: 75.53 kB / 0.884 GB, free: 420 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 9.62e-07/0.006821, allocations: 0 / 0.884 GB, free: 420 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.499e-05/0.006876, allocations: 51.59 kB / 0.884 GB, free: 364 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001416/0.007017, allocations: 15.98 kB / 0.8841 GB, free: 348 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004955/0.007513, allocations: 250.4 kB / 0.8843 GB, free: 68 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.352e-05/0.007556, allocations: 67.28 kB / 0.8844 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.141e-05/0.007588, allocations: 8.734 kB / 0.8844 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.42e-05/0.007622, allocations: 12.5 kB / 0.8844 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of SimCode: time 8.32e-07/0.007623, allocations: 0 / 0.8844 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of Templates: time 0.002492/0.01011, allocations: 1.127 MB / 0.8855 GB, free: 14.86 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.204786916030571]